about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-09-04 19:56:02 +0100
committerGitHub <noreply@github.com>2024-09-04 19:56:02 +0100
commitfcf27f05127d6e59f66ba0af745179e4b6653f77 (patch)
tree61a4e54235b347b88985c86916e7e783c31775b8
parente8eaf2f4a72f9c2c45299637425ebc299079caf0 (diff)
downloadvoidsky-fcf27f05127d6e59f66ba0af745179e4b6653f77.tar.zst
[Video] content fit cover on native (#5140)
-rw-r--r--src/view/com/util/post-embeds/VideoEmbed.tsx2
-rw-r--r--src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbed.tsx b/src/view/com/util/post-embeds/VideoEmbed.tsx
index d8410951a..a5bc97f85 100644
--- a/src/view/com/util/post-embeds/VideoEmbed.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbed.tsx
@@ -84,7 +84,7 @@ export function VideoEmbed({embed}: {embed: AppBskyEmbedVideo.View}) {
                 source={{uri: embed.thumbnail}}
                 alt={embed.alt}
                 style={a.flex_1}
-                contentFit="contain"
+                contentFit="cover"
                 accessibilityIgnoresInvertColors
               />
               <Button
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
index ad844b93d..4fafce1de 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
@@ -49,7 +49,7 @@ export function VideoEmbedInnerNative({
         ref={ref}
         player={player}
         style={[a.flex_1, a.rounded_sm]}
-        contentFit="contain"
+        contentFit="cover"
         nativeControls={isFullscreen}
         accessibilityIgnoresInvertColors
         onEnterFullscreen={() => {