Fix clip issue (#10131)

This commit is contained in:
Eric Bailey
2026-03-25 17:17:47 -05:00
committed by GitHub
parent d44060a34e
commit bc7b6f1e13
3 changed files with 6 additions and 11 deletions
+4
View File
@@ -108,6 +108,10 @@ export function P({style, ...rest}: TextProps) {
const numberOfLinesClippingFix = {
overflowY: 'visible',
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
// overflowInline: 'clip',
} satisfies React.CSSProperties as TextStyleProp