Only do reduced layout if images embed

This commit is contained in:
Eric Bailey
2024-09-04 13:08:39 -05:00
parent eb067d759a
commit 8ea6155bb4
5 changed files with 59 additions and 32 deletions
+3 -1
View File
@@ -97,12 +97,14 @@ export function ConstrainedImage({
export function AutoSizedImage({
image,
crop = 'constrained',
hideBadge,
onPress,
onLongPress,
onPressIn,
}: {
image: AppBskyEmbedImages.ViewImage
crop?: 'none' | 'square' | 'constrained'
hideBadge?: boolean
onPress?: () => void
onLongPress?: () => void
onPressIn?: () => void
@@ -133,7 +135,7 @@ export function AutoSizedImage({
accessibilityHint=""
/>
{hasAlt || isCropped ? (
{(hasAlt || isCropped) && !hideBadge ? (
<View
accessible={false}
style={[