diff --git a/src/view/com/util/images/Gallery.tsx b/src/view/com/util/images/Gallery.tsx index 658265dc32..839674c8cd 100644 --- a/src/view/com/util/images/Gallery.tsx +++ b/src/view/com/util/images/Gallery.tsx @@ -8,7 +8,6 @@ import {useLingui} from '@lingui/react' import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge' import {PostEmbedViewContext} from '#/view/com/util/post-embeds/types' import {atoms as a, useTheme} from '#/alf' -import {Crop_Stroke2_Corner0_Rounded as Crop} from '#/components/icons/Crop' import {Text} from '#/components/Typography' type EventFunction = (index: number) => void @@ -37,11 +36,6 @@ export const GalleryItem: FC = ({ const largeAltBadge = useLargeAltBadgeEnabled() const image = images[index] const hasAlt = !!image.alt - const isCropped = React.useMemo(() => { - if (!image.aspectRatio) return true - const aspect = image.aspectRatio.width / image.aspectRatio.height - return aspect !== 1 - }, [image.aspectRatio]) const hideBadges = viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia return ( @@ -69,7 +63,7 @@ export const GalleryItem: FC = ({ accessibilityIgnoresInvertColors /> - {(hasAlt || isCropped) && !hideBadges ? ( + {hasAlt && !hideBadges ? ( = ({ }, ], ]}> - {isCropped && ( - - )} - {hasAlt && ( - - ALT - - )} + + ALT + ) : null}