[🐴] Embed backwards compat (#4302)
This commit is contained in:
parent
2bb3694819
commit
f868821cfc
2 changed files with 4 additions and 45 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue