1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-05 14:06:48 +01:00

fix: prevent videos from clipping when in fullscreen mode (#1397)

Co-authored-by: Tomasz Rymkiewicz <kreha1@pm.me>
This commit is contained in:
Alexander Harding 2023-02-07 08:32:37 -06:00 committed by GitHub
parent 2128d11238
commit 36191c500f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -104,6 +104,7 @@ const userSettings = useUserSettings()
controls controls
rounded-lg rounded-lg
object-cover object-cover
fullscreen:object-contain
:width="attachment.meta?.original?.width" :width="attachment.meta?.original?.width"
:height="attachment.meta?.original?.height" :height="attachment.meta?.original?.height"
:style="{ :style="{

View file

@ -9,6 +9,8 @@ import {
transformerVariantGroup, transformerVariantGroup,
} from 'unocss' } from 'unocss'
import { variantParentMatcher } from '@unocss/preset-mini/utils'
export default defineConfig({ export default defineConfig({
shortcuts: [ shortcuts: [
{ {
@ -119,6 +121,7 @@ export default defineConfig({
layer: 'native-mac', layer: 'native-mac',
} }
}, },
variantParentMatcher('fullscreen', '@media (display-mode: fullscreen)'),
], ],
rules: [ rules: [
// scrollbar-hide // scrollbar-hide