From 29b0c45ca2297943732ab0a1e171aec1d4704167 Mon Sep 17 00:00:00 2001 From: Maggie Appleton <5599295+MaggieAppleton@users.noreply.github.com> Date: Thu, 8 Oct 2026 08:33:26 +0100 Subject: [PATCH 1/2] Keep every icon at its declared size beside wrapping text Icons are flex items with the default flex-shrink: 1, so a label long enough to wrap squeezed them: the resolved decision popover's check and cross icons and the settled decision line rendered at different, tiny sizes. Hold every shared icon at its size from the base layer, and centre icons beside wrapping text on the first line with one icon-first-line utility. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/chat/chat.tsx | 4 +- apps/web/src/chat/work-progress.tsx | 6 +- apps/web/src/icon-assets.test.ts | 7 ++ apps/web/src/theme.css | 17 +++ bun.lock | 3 + e2e/icon-size.e2e.ts | 116 ++++++++++++++++++ e2e/source/icon-size.fixture.ts | 103 ++++++++++++++++ packages/editor/src/resolved-layer.tsx | 6 +- packages/editor/src/styles.css | 4 - packages/editor/src/widgets/questionnaire.tsx | 2 +- packages/icons/package.json | 5 +- packages/icons/src/brand.tsx | 9 +- packages/icons/src/filled.tsx | 1 + packages/icons/src/icon.test.tsx | 12 ++ 14 files changed, 282 insertions(+), 13 deletions(-) create mode 100644 e2e/icon-size.e2e.ts create mode 100644 e2e/source/icon-size.fixture.ts create mode 100644 packages/icons/src/icon.test.tsx diff --git a/apps/web/src/chat/chat.tsx b/apps/web/src/chat/chat.tsx index 643eff17a..f16cc424a 100644 --- a/apps/web/src/chat/chat.tsx +++ b/apps/web/src/chat/chat.tsx @@ -698,8 +698,8 @@ export function Chat( id={cueId} > {sendError - ? - : } + ? + : } {sendError ?? (researchBlock ? researchCopy[researchBlock] diff --git a/apps/web/src/chat/work-progress.tsx b/apps/web/src/chat/work-progress.tsx index ae7834ed8..f1dafa66e 100644 --- a/apps/web/src/chat/work-progress.tsx +++ b/apps/web/src/chat/work-progress.tsx @@ -47,7 +47,11 @@ function ToolCall( let row = ( <> {hasDetails && ( -