diff --git a/src/components/Post/Embed/ImageEmbed.tsx b/src/components/Post/Embed/ImageEmbed.tsx index ecc0c09d13..9eea748a33 100644 --- a/src/components/Post/Embed/ImageEmbed.tsx +++ b/src/components/Post/Embed/ImageEmbed.tsx @@ -115,6 +115,7 @@ export function ImageEmbed({ onPress(0, [singleContainerRef.current], [singleDimsRef.current]) } } + console.log(rest.viewContext, 'rest.viewContext') return ( { diff --git a/src/components/Post/Embed/types.ts b/src/components/Post/Embed/types.ts index 77319b0e86..0ef5569c7d 100644 --- a/src/components/Post/Embed/types.ts +++ b/src/components/Post/Embed/types.ts @@ -4,7 +4,6 @@ import {type AppBskyFeedDefs, type ModerationDecision} from '@atproto/api' export enum PostEmbedViewContext { ThreadHighlighted = 'ThreadHighlighted', Feed = 'Feed', - FeedEmbedRecordWithMedia = 'FeedEmbedRecordWithMedia', ChatMessage = 'ChatMessage', } diff --git a/src/components/images/ImageLayoutGrid.tsx b/src/components/images/ImageLayoutGrid.tsx index 5b4ba608b2..f69de63bd1 100644 --- a/src/components/images/ImageLayoutGrid.tsx +++ b/src/components/images/ImageLayoutGrid.tsx @@ -5,7 +5,7 @@ import {type AppBskyEmbedImages} from '@atproto/api' import {atoms as a, useBreakpoints} from '#/alf' import {type Dimensions} from '#/components/Lightbox/types' -import {PostEmbedViewContext} from '#/components/Post/Embed/types' +import {type PostEmbedViewContext} from '#/components/Post/Embed/types' import {GalleryItem} from './ImageLayoutGridItem' interface ImageLayoutGridProps { @@ -28,9 +28,7 @@ export function ImageLayoutGrid({ ...props }: ImageLayoutGridProps) { const {gtMobile} = useBreakpoints() - const isWithinQuote = - isWithinQuoteProp ?? - props.viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia + const isWithinQuote = isWithinQuoteProp const gap = isWithinQuote ? (gtMobile ? a.gap_xs : a.gap_2xs) : a.gap_xs return (