Fix web embed views
(cherry picked from commit 771d4ccf163085bfc8ed55439643c93914e515f3) (cherry picked from commit 4661f49d0e1390c9714537e57baebe7fabc4e08a)
This commit is contained in:
@@ -2,6 +2,7 @@ import React from 'react'
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {AppBskyEmbedRecord} from '@atproto/api'
|
import {AppBskyEmbedRecord} from '@atproto/api'
|
||||||
|
|
||||||
|
import {isNative} from '#/platform/detection'
|
||||||
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, useTheme} from '#/alf'
|
||||||
|
|
||||||
@@ -13,7 +14,8 @@ 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, a.rounded_md, isNative && {flexBasis: 0}]}>
|
||||||
<PostEmbeds embed={embed} />
|
<PostEmbeds embed={embed} />
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user