Fix clip issue (#10131)
This commit is contained in:
@@ -519,7 +519,6 @@ 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),
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ export function P({style, ...rest}: TextProps) {
|
|||||||
const numberOfLinesClippingFix = {
|
const numberOfLinesClippingFix = {
|
||||||
overflowY: 'visible',
|
overflowY: 'visible',
|
||||||
overflowX: 'clip',
|
overflowX: 'clip',
|
||||||
|
// mimic browser default behavior of `min-width: 0` on `overflow: hidden`
|
||||||
|
// elements to allow text to shrink smaller than its intrinsic width when
|
||||||
|
// necessary
|
||||||
|
minWidth: 0,
|
||||||
// this is neater and supports vertical writing modes, but it's only baseline newly available
|
// this is neater and supports vertical writing modes, but it's only baseline newly available
|
||||||
// overflowInline: 'clip',
|
// overflowInline: 'clip',
|
||||||
} satisfies React.CSSProperties as TextStyleProp
|
} satisfies React.CSSProperties as TextStyleProp
|
||||||
|
|||||||
@@ -82,16 +82,9 @@ let PostMeta = (opts: PostMetaOpts): React.ReactNode => {
|
|||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
<View
|
<View style={[a.flex_row, a.align_end, a.flex_shrink]}>
|
||||||
style={[a.flex_row, a.align_end, a.flex_shrink, web({minWidth: 0})]}>
|
|
||||||
<ProfileHoverCard did={author.did}>
|
<ProfileHoverCard did={author.did}>
|
||||||
<View
|
<View style={[a.flex_row, a.align_end, a.flex_shrink]}>
|
||||||
style={[
|
|
||||||
a.flex_row,
|
|
||||||
a.align_end,
|
|
||||||
a.flex_shrink,
|
|
||||||
web({minWidth: 0}),
|
|
||||||
]}>
|
|
||||||
<MaybeLinkText
|
<MaybeLinkText
|
||||||
emoji
|
emoji
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
@@ -132,7 +125,6 @@ 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