Skip to content

Commit

Permalink
fix: prevent videos from clipping when in fullscreen mode (#1397)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Rymkiewicz <kreha1@pm.me>
  • Loading branch information
aeharding and kreha1 committed Feb 7, 2023
1 parent 2128d11 commit 36191c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/status/StatusAttachment.vue
Expand Up @@ -104,6 +104,7 @@ const userSettings = useUserSettings()
controls
rounded-lg
object-cover
fullscreen:object-contain
:width="attachment.meta?.original?.width"
:height="attachment.meta?.original?.height"
:style="{
Expand Down
3 changes: 3 additions & 0 deletions unocss.config.ts
Expand Up @@ -9,6 +9,8 @@ import {
transformerVariantGroup,
} from 'unocss'

import { variantParentMatcher } from '@unocss/preset-mini/utils'

export default defineConfig({
shortcuts: [
{
Expand Down Expand Up @@ -119,6 +121,7 @@ export default defineConfig({
layer: 'native-mac',
}
},
variantParentMatcher('fullscreen', '@media (display-mode: fullscreen)'),
],
rules: [
// scrollbar-hide
Expand Down

0 comments on commit 36191c5

Please sign in to comment.