Fix disableCrop in record-with-media posts
This commit is contained in:
@@ -48,14 +48,14 @@ export function PostEmbeds({
|
|||||||
onOpen,
|
onOpen,
|
||||||
style,
|
style,
|
||||||
allowNestedQuotes,
|
allowNestedQuotes,
|
||||||
contextView,
|
viewContext,
|
||||||
}: {
|
}: {
|
||||||
embed?: Embed
|
embed?: Embed
|
||||||
moderation?: ModerationDecision
|
moderation?: ModerationDecision
|
||||||
onOpen?: () => void
|
onOpen?: () => void
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
allowNestedQuotes?: boolean
|
allowNestedQuotes?: boolean
|
||||||
contextView?: 'thread-highlighted'
|
viewContext?: 'thread-highlighted'
|
||||||
}) {
|
}) {
|
||||||
const {openLightbox} = useLightboxControls()
|
const {openLightbox} = useLightboxControls()
|
||||||
|
|
||||||
@@ -68,6 +68,7 @@ export function PostEmbeds({
|
|||||||
embed={embed.media}
|
embed={embed.media}
|
||||||
moderation={moderation}
|
moderation={moderation}
|
||||||
onOpen={onOpen}
|
onOpen={onOpen}
|
||||||
|
viewContext={viewContext}
|
||||||
/>
|
/>
|
||||||
<MaybeQuoteEmbed embed={embed.record} onOpen={onOpen} />
|
<MaybeQuoteEmbed embed={embed.record} onOpen={onOpen} />
|
||||||
</View>
|
</View>
|
||||||
@@ -128,7 +129,7 @@ export function PostEmbeds({
|
|||||||
<ContentHider modui={moderation?.ui('contentMedia')}>
|
<ContentHider modui={moderation?.ui('contentMedia')}>
|
||||||
<View style={[styles.container, style]}>
|
<View style={[styles.container, style]}>
|
||||||
<AutoSizedImage
|
<AutoSizedImage
|
||||||
disableCrop={contextView === 'thread-highlighted'}
|
disableCrop={viewContext === 'thread-highlighted'}
|
||||||
image={image}
|
image={image}
|
||||||
onPress={() => _openLightbox(0)}
|
onPress={() => _openLightbox(0)}
|
||||||
onPressIn={() => onPressIn(0)}
|
onPressIn={() => onPressIn(0)}
|
||||||
|
|||||||
Reference in New Issue
Block a user