Standard Site link card improvements (#10608)

This commit is contained in:
Eric Bailey
2026-05-25 15:49:30 -05:00
committed by GitHub
parent 709589fa36
commit f5dcce1718
3 changed files with 290 additions and 286 deletions
@@ -21,13 +21,9 @@ import {Text} from '#/components/Typography'
export function StandardSiteMetaRow({
type = 'document',
view,
onInteractWithin,
onInteractWithout,
}: {
type?: 'document' | 'publication'
view: AppBskyEmbedExternal.ViewExternal
onInteractWithin: () => void
onInteractWithout: () => void
}) {
const t = useTheme()
const {t: l} = useLingui()
@@ -80,13 +76,7 @@ export function StandardSiteMetaRow({
<InlineLinkText
label={l`View @${authorProfile.handle}'s profile`}
to={makeProfileLink(authorProfile)}
style={metaTextStyle}
onPress={e => {
// this link is nested, yes it's not ideal
e.stopPropagation()
}}
onMouseEnter={onInteractWithin}
onMouseLeave={onInteractWithout}>
style={[metaTextStyle, a.pointer_events_auto]}>
@{authorProfile.handle}
</InlineLinkText>
</Trans>
@@ -98,7 +88,7 @@ export function StandardSiteMetaRow({
if (items.length === 0) return null
return (
<View style={[a.flex_row, a.align_center, a.gap_xs]}>
<View style={[a.flex_row, a.align_center, a.gap_xs, a.z_10]}>
{items.map((item, i) => (
<Fragment key={item.key}>
{i > 0 && <Text style={metaTextStyle}></Text>}