From f3de5ccdda72c4745198bfa41bae55b14d612787 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 22 May 2026 17:24:45 -0500 Subject: [PATCH] Fix up mobile --- ...ionMetaRow.tsx => StandardSiteMetaRow.tsx} | 15 ++++++++-- .../Post/Embed/StandardSiteEmbed/index.tsx | 28 ++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) rename src/components/Post/Embed/StandardSiteEmbed/{PublicationMetaRow.tsx => StandardSiteMetaRow.tsx} (89%) diff --git a/src/components/Post/Embed/StandardSiteEmbed/PublicationMetaRow.tsx b/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx similarity index 89% rename from src/components/Post/Embed/StandardSiteEmbed/PublicationMetaRow.tsx rename to src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx index e5a5cf5415..4b983f4d6e 100644 --- a/src/components/Post/Embed/StandardSiteEmbed/PublicationMetaRow.tsx +++ b/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx @@ -12,14 +12,19 @@ import { matchStandardSitePublisher, matchStandardSitePublisherByUri, } from '#/components/Post/Embed/StandardSiteEmbed/publishers' -import {isStandardSiteDocumentUri} from '#/components/Post/Embed/StandardSiteEmbed/utils' +import { + isStandardSiteDocumentUri, + isStandardSitePublicationUri, +} from '#/components/Post/Embed/StandardSiteEmbed/utils' import {Text} from '#/components/Typography' -export function PublicationMetaRow({ +export function StandardSiteMetaRow({ + type = 'document', view, onInteractWithin, onInteractWithout, }: { + type?: 'document' | 'publication' view: AppBskyEmbedExternal.ViewExternal onInteractWithin: () => void onInteractWithout: () => void @@ -29,7 +34,11 @@ export function PublicationMetaRow({ const highlightedPublisher = !!matchStandardSitePublisher(view) const didsFromRecords = view.associatedRefs - ?.filter(isStandardSiteDocumentUri) + ?.filter( + type === 'document' + ? isStandardSiteDocumentUri + : isStandardSitePublicationUri, + ) .map(ref => new AtUri(ref.uri).host) || [] // atm should only be one docment const authorDid = didsFromRecords.at(0) diff --git a/src/components/Post/Embed/StandardSiteEmbed/index.tsx b/src/components/Post/Embed/StandardSiteEmbed/index.tsx index 53bcf6a6be..c36ce850ca 100644 --- a/src/components/Post/Embed/StandardSiteEmbed/index.tsx +++ b/src/components/Post/Embed/StandardSiteEmbed/index.tsx @@ -16,8 +16,8 @@ import {useInteractionState} from '#/components/hooks/useInteractionState' import {Clock_Stroke2_Corner0_Rounded as Clock} from '#/components/icons/Clock' import {Link} from '#/components/Link' import {MediaInsetBorder} from '#/components/MediaInsetBorder' -import {PublicationMetaRow} from '#/components/Post/Embed/StandardSiteEmbed/PublicationMetaRow' import {matchStandardSitePublisher} from '#/components/Post/Embed/StandardSiteEmbed/publishers' +import {StandardSiteMetaRow} from '#/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow' import {StandardSiteThemeProvider} from '#/components/Post/Embed/StandardSiteEmbed/StandardSiteThemeProvider' import {isStandardSitePublicationEmbed} from '#/components/Post/Embed/StandardSiteEmbed/utils' import {Text} from '#/components/Typography' @@ -107,7 +107,7 @@ export const StandardSiteEmbed = ({ - )} @@ -288,7 +289,7 @@ export function PublicationCard({ {view.source?.title} - - {!hideSubscribe && ( + {!hideSubscribe && gtPhone && ( )} + + {!hideSubscribe && !gtPhone && ( + + + + )} ) }} @@ -544,7 +557,8 @@ export function PublicationFooter({ ]}> {view.source?.title} -