From 8a7b04acce94dd27482d44e0a0eb69dbd472f2e9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 28 May 2026 11:32:03 -0500 Subject: [PATCH] Moar Standard Site Tweaks (#10641) (cherry picked from commit af04e8b496316126bef41ba1d4ff5355f5017bcd) --- .../StandardSiteEmbed/StandardSiteMetaRow.tsx | 17 ++++++++++------- .../Post/Embed/StandardSiteEmbed/index.tsx | 8 +++++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx b/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx index 00ab602528..8c1187216c 100644 --- a/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx +++ b/src/components/Post/Embed/StandardSiteEmbed/StandardSiteMetaRow.tsx @@ -6,6 +6,7 @@ import {Trans, useLingui} from '@lingui/react/macro' import {makeProfileLink} from '#/lib/routes/links' import {toNiceDomain} from '#/lib/strings/url-helpers' import {atoms as a, useTheme} from '#/alf' +import {StandardSite} from '#/components/icons/community/StandardSite' import {InlineLinkText} from '#/components/Link' import { matchStandardSitePublisher, @@ -46,10 +47,10 @@ export function StandardSiteMetaRow({ : undefined const articleDomain = toNiceDomain(view.uri) const articlePublisher = matchStandardSitePublisherByUri(view.uri) - const DomainIcon = articlePublisher?.Icon + const DomainIcon = articlePublisher?.Icon || StandardSite const metaTextStyle = [ a.text_xs, - a.leading_snug, + a.leading_tight, t.atoms.text_contrast_medium, ] @@ -59,11 +60,11 @@ export function StandardSiteMetaRow({ items.push({ key: 'domain', node: ( - + {DomainIcon && ( - + )} - + {articleDomain} @@ -75,7 +76,7 @@ export function StandardSiteMetaRow({ items.push({ key: 'author', node: ( - + by{' '} { + onPress={e => { + e.stopPropagation() + e.preventDefault() ax.metric('embed:standardSite:authorHandle:press', { handle: authorProfile.handle, }) diff --git a/src/components/Post/Embed/StandardSiteEmbed/index.tsx b/src/components/Post/Embed/StandardSiteEmbed/index.tsx index fddfaf0a41..565bacf8b4 100644 --- a/src/components/Post/Embed/StandardSiteEmbed/index.tsx +++ b/src/components/Post/Embed/StandardSiteEmbed/index.tsx @@ -356,7 +356,12 @@ export function PublicationCard({ + style={[ + a.text_md, + a.font_semi_bold, + t.atoms.text, + a.leading_snug, + ]}> {view.source?.title}