Fix text overflow in post meta on web (#10122)
This commit is contained in:
@@ -519,6 +519,7 @@ function Inner({
|
|||||||
a.leading_snug,
|
a.leading_snug,
|
||||||
a.font_semi_bold,
|
a.font_semi_bold,
|
||||||
a.self_start,
|
a.self_start,
|
||||||
|
{minWidth: 0},
|
||||||
]}>
|
]}>
|
||||||
{sanitizeDisplayName(
|
{sanitizeDisplayName(
|
||||||
profile.displayName || sanitizeHandle(profile.handle),
|
profile.displayName || sanitizeHandle(profile.handle),
|
||||||
|
|||||||
@@ -82,9 +82,16 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
/>
|
/>
|
||||||
</View>
|
</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}>
|
<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
|
<MaybeLinkText
|
||||||
emoji
|
emoji
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
@@ -125,6 +132,7 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
t.atoms.text_contrast_medium,
|
t.atoms.text_contrast_medium,
|
||||||
a.leading_tight,
|
a.leading_tight,
|
||||||
{flexShrink: 10},
|
{flexShrink: 10},
|
||||||
|
web({minWidth: 0}),
|
||||||
]}>
|
]}>
|
||||||
{NON_BREAKING_SPACE + sanitizeHandle(handle, '@')}
|
{NON_BREAKING_SPACE + sanitizeHandle(handle, '@')}
|
||||||
</MaybeLinkText>
|
</MaybeLinkText>
|
||||||
|
|||||||
Reference in New Issue
Block a user