Skip to content

Commit

Permalink
fix: prevent videos from clipping when in fullscreen mode (elk-zone#1397
Browse files Browse the repository at this point in the history
)

Co-authored-by: Tomasz Rymkiewicz <[email protected]>
  • Loading branch information
aeharding and kreha1 authored 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.