don't use flexBasis on web for message post embeds (#4303)

* don't use flexBasis on web

* rm unnecessary style
zio/stable
Hailey 2024-06-03 15:05:37 -07:00 committed by GitHub
parent de257a1186
commit f05aebf78e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import {View} from 'react-native'
import {AppBskyEmbedRecord} from '@atproto/api' import {AppBskyEmbedRecord} from '@atproto/api'
import {PostEmbeds} from '#/view/com/util/post-embeds' import {PostEmbeds} from '#/view/com/util/post-embeds'
import {atoms as a, useTheme} from '#/alf' import {atoms as a, native, useTheme} from '#/alf'
let MessageItemEmbed = ({ let MessageItemEmbed = ({
embed, embed,
@ -13,7 +13,7 @@ let MessageItemEmbed = ({
const t = useTheme() const t = useTheme()
return ( return (
<View style={[a.my_xs, t.atoms.bg, a.rounded_md, {flexBasis: 0}]}> <View style={[a.my_xs, t.atoms.bg, native({flexBasis: 0})]}>
<PostEmbeds embed={embed} /> <PostEmbeds embed={embed} />
</View> </View>
) )