diff --git a/src/components/Post/Embed/index.tsx b/src/components/Post/Embed/index.tsx index c9dae73a7e..0c3106c1b9 100644 --- a/src/components/Post/Embed/index.tsx +++ b/src/components/Post/Embed/index.tsx @@ -39,12 +39,11 @@ import {PostPlaceholder as PostPlaceholderText} from './PostPlaceholder' import { type CommonProps, type EmbedProps, - PostEmbedViewContext, - QuoteEmbedViewContext, + type PostEmbedViewContext, } from './types' import {VideoEmbed} from './VideoEmbed' -export {PostEmbedViewContext, QuoteEmbedViewContext} from './types' +export {PostEmbedViewContext} from './types' export function Embed({embed: rawEmbed, ...rest}: EmbedProps) { const embed = parseEmbed(rawEmbed) @@ -164,11 +163,7 @@ function RecordEmbed({ @@ -229,9 +224,10 @@ export function QuoteEmbed({ linkDisabled, isWithinQuote: parentIsWithinQuote, allowNestedQuotes: parentAllowNestedQuotes, + viewContext, }: Omit & { embed: EmbedType<'post'> - viewContext?: QuoteEmbedViewContext + viewContext?: PostEmbedViewContext linkDisabled?: boolean }) { const moderationOpts = useModerationOpts() @@ -309,7 +305,7 @@ export function QuoteEmbed({ { + if (isWithinChat) { + return 120 + } if (bps.gtMobile) { return 300 } else if (bps.gtPhone) { @@ -111,10 +118,7 @@ export function Gallery({ } else { return 200 } - }, [bps]) - const isWithinQuote = - viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia - const hideBadges = isWithinQuote + }, [bps, isWithinChat]) /* * Container overflow styles