From 245eb90f63048bf68f1c91e0cefc272cbf71df9c Mon Sep 17 00:00:00 2001 From: Void Date: Mon, 9 Nov 2026 10:27:42 +0000 Subject: [PATCH] Pose pill: a long name takes its own lines, the time drops below At 320px the name shrank to a 37px column beside the time and broke mid-word. The pill now wraps its children and breaks only where a single word is too long. Co-Authored-By: Claude Sonnet 5.5 --- src/app/components/message/layout/layout.css.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/components/message/layout/layout.css.ts b/src/app/components/message/layout/layout.css.ts index 0afb68bf..ad5d1c38 100644 --- a/src/app/components/message/layout/layout.css.ts +++ b/src/app/components/message/layout/layout.css.ts @@ -214,7 +214,9 @@ export const BubbleHeaderPose = style({ // narrower than its own name, and a percentage cap there truncated names to one letter. width: 'max-content', maxWidth: `calc(100vw - ${PHONE_PORTRAIT} - ${toRem(64)})`, - overflowWrap: 'anywhere', + // A name too long for one line takes its own lines and the time drops below it, instead of + // the name shrinking to a sliver beside the time. + flexWrap: 'wrap', borderRadius: toRem(14), }, }, @@ -406,7 +408,7 @@ globalStyle(`${BubbleHeaderPose} ${Username}, ${BubbleHeaderPose} ${Username} *` whiteSpace: 'normal', overflow: 'visible', textOverflow: 'clip', - overflowWrap: 'anywhere', + overflowWrap: 'break-word', }, }, });