Fix text overflow in post meta on web (#10122)

This commit is contained in:
DS Boyce
2026-03-25 12:59:04 -07:00
committed by GitHub
parent c06312f09a
commit 2c828b5755
2 changed files with 11 additions and 2 deletions
@@ -519,6 +519,7 @@ function Inner({
a.leading_snug,
a.font_semi_bold,
a.self_start,
{minWidth: 0},
]}>
{sanitizeDisplayName(
profile.displayName || sanitizeHandle(profile.handle),
+10 -2
View File
@@ -82,9 +82,16 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
/>
</View>
)}
<View style={[a.flex_row, a.align_end, a.flex_shrink]}>
<View
style={[a.flex_row, a.align_end, a.flex_shrink, web({minWidth: 0})]}>
<ProfileHoverCard did={author.did}>
<View style={[a.flex_row, a.align_end, a.flex_shrink]}>
<View
style={[
a.flex_row,
a.align_end,
a.flex_shrink,
web({minWidth: 0}),
]}>
<MaybeLinkText
emoji
numberOfLines={1}
@@ -125,6 +132,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
t.atoms.text_contrast_medium,
a.leading_tight,
{flexShrink: 10},
web({minWidth: 0}),
]}>
{NON_BREAKING_SPACE + sanitizeHandle(handle, '@')}
</MaybeLinkText>