diff options
author | Eric Bailey <git@esb.lol> | 2025-01-17 20:09:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-18 02:09:44 +0000 |
commit | 3e0ac0a0668b5906d7b81dbc075cfd04ba89911c (patch) | |
tree | 5a113c11d8084ab0f9a1dd4edbae47b6e620c621 /src/view/com/util/post-embeds/index.tsx | |
parent | 6f3f11671d526c5d9a454c46f6daf305b588ef4c (diff) | |
download | voidsky-3e0ac0a0668b5906d7b81dbc075cfd04ba89911c.tar.zst |
Bring video cropping in line with images (#7462)
* Mimic image cropping for videos on web * Same on native
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/index.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx index 9dc43da8e..6f5f9d3ab 100644 --- a/src/view/com/util/post-embeds/index.tsx +++ b/src/view/com/util/post-embeds/index.tsx @@ -237,7 +237,16 @@ export function PostEmbeds({ if (AppBskyEmbedVideo.isView(embed)) { return ( <ContentHider modui={moderation?.ui('contentMedia')}> - <VideoEmbed embed={embed} /> + <VideoEmbed + embed={embed} + crop={ + viewContext === PostEmbedViewContext.ThreadHighlighted + ? 'none' + : viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia + ? 'square' + : 'constrained' + } + /> </ContentHider> ) } |