diff options
author | Eric Bailey <git@esb.lol> | 2024-05-31 12:56:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 12:56:06 -0500 |
commit | f868821cfcc87b62a320e5a1e11375fdb973adc1 (patch) | |
tree | 809a56c96651f8aea18875f68b3c9bbed5c1785c /src/components/dms/MessageItemEmbed.tsx | |
parent | 2bb36948198b9a0787544258bde72b4d3c6d78b0 (diff) | |
download | voidsky-f868821cfcc87b62a320e5a1e11375fdb973adc1.tar.zst |
[🐴] Embed backwards compat (#4302)
Diffstat (limited to 'src/components/dms/MessageItemEmbed.tsx')
-rw-r--r-- | src/components/dms/MessageItemEmbed.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/dms/MessageItemEmbed.tsx b/src/components/dms/MessageItemEmbed.tsx index 5d3656bac..9deb0c1d9 100644 --- a/src/components/dms/MessageItemEmbed.tsx +++ b/src/components/dms/MessageItemEmbed.tsx @@ -2,6 +2,7 @@ import React from 'react' import {View} from 'react-native' import {AppBskyEmbedRecord} from '@atproto/api' +import {isNative} from '#/platform/detection' import {PostEmbeds} from '#/view/com/util/post-embeds' import {atoms as a, useTheme} from '#/alf' @@ -13,7 +14,8 @@ let MessageItemEmbed = ({ const t = useTheme() return ( - <View style={[a.my_xs, t.atoms.bg, a.rounded_md, {flexBasis: 0}]}> + <View + style={[a.my_xs, t.atoms.bg, a.rounded_md, isNative && {flexBasis: 0}]}> <PostEmbeds embed={embed} /> </View> ) |