change maxWidth -> width to fix GIFs in DMs (#4717)

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
zio/stable
Samuel Newman 2024-07-03 03:48:55 +01:00 committed by GitHub
parent 04cfd06639
commit dc3c81c4e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

@ -124,15 +124,12 @@ export function GifEmbed({
) )
return ( return (
<View <View style={[a.rounded_sm, a.overflow_hidden, a.mt_sm, {width: '100%'}]}>
style={[a.rounded_sm, a.overflow_hidden, a.mt_sm, {maxWidth: '100%'}]}>
<View <View
style={[ style={[
a.rounded_sm, a.rounded_sm,
a.overflow_hidden, a.overflow_hidden,
{ {aspectRatio: params.dimensions!.width / params.dimensions!.height},
aspectRatio: params.dimensions!.width / params.dimensions!.height,
},
]}> ]}>
<PlaybackControls <PlaybackControls
onPress={onPress} onPress={onPress}