diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-07-03 03:48:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 03:48:55 +0100 |
commit | dc3c81c4e2923e0ab884adf119bd33c510db1f4a (patch) | |
tree | 7f9f2f45e56d5fceef2d37957ed23a8765c01147 /src | |
parent | 04cfd06639687012b59b52756015324cc622613b (diff) | |
download | voidsky-dc3c81c4e2923e0ab884adf119bd33c510db1f4a.tar.zst |
change maxWidth -> width to fix GIFs in DMs (#4717)
Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/util/post-embeds/GifEmbed.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/view/com/util/post-embeds/GifEmbed.tsx b/src/view/com/util/post-embeds/GifEmbed.tsx index 1558b75c6..5e3a69391 100644 --- a/src/view/com/util/post-embeds/GifEmbed.tsx +++ b/src/view/com/util/post-embeds/GifEmbed.tsx @@ -124,15 +124,12 @@ export function GifEmbed({ ) return ( - <View - style={[a.rounded_sm, a.overflow_hidden, a.mt_sm, {maxWidth: '100%'}]}> + <View style={[a.rounded_sm, a.overflow_hidden, a.mt_sm, {width: '100%'}]}> <View style={[ a.rounded_sm, a.overflow_hidden, - { - aspectRatio: params.dimensions!.width / params.dimensions!.height, - }, + {aspectRatio: params.dimensions!.width / params.dimensions!.height}, ]}> <PlaybackControls onPress={onPress} |