From 14312459f27e05dec5539535e6b22d06c4bfa036 Mon Sep 17 00:00:00 2001 From: Void Date: Mon, 9 Nov 2026 10:29:22 +0000 Subject: [PATCH] Pose pill: wrap the header row, not the pill The pill's child is the flex row holding name and time; flex-wrap on the pill itself did nothing. Co-Authored-By: Claude Sonnet 5.5 --- src/app/components/message/layout/layout.css.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/components/message/layout/layout.css.ts b/src/app/components/message/layout/layout.css.ts index ad5d1c38..1603fc43 100644 --- a/src/app/components/message/layout/layout.css.ts +++ b/src/app/components/message/layout/layout.css.ts @@ -214,9 +214,6 @@ 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)})`, - // 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), }, }, @@ -413,6 +410,16 @@ globalStyle(`${BubbleHeaderPose} ${Username}, ${BubbleHeaderPose} ${Username} *` }, }); +// 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 (the pill's one child is the flex row of both). +globalStyle(`${BubbleHeaderPose} > div`, { + '@media': { + [PHONE]: { + flexWrap: 'wrap', + }, + }, +}); + // An outside list marker hangs left of its item's text and ignores the portrait's silhouette, so // beside a left portrait the number lands under the art. Inside, it is a word on the first line // and wraps around the silhouette like the rest.