From 46ca2f3e566bef8ffc183b9686329926e847f375 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 19 Aug 2026 22:19:09 -0700 Subject: [PATCH] feat(studio): wrap gutter names instead of truncating them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A truncated name needs a hover to be read at all, and a tooltip is no use for a name you are scanning a column of. All three gutter labels — the plain track header, the group header, and the keyframe layer row — now wrap and drop their `title`. `break-words` so a long single token breaks rather than forcing the column wider. Measured at the 232px gutter: a name long enough to wrap takes two lines (28px) inside the 48px row with room to spare; a third line would overflow, which is what the row affords either way. One test located the name by its `title` and now reads the rendered text. Co-Authored-By: Claude Opus 5 (1M context) --- .../src/player/components/LayerDisclosureRow.tsx | 6 +++--- .../player/components/TimelineGroupHeader.tsx | 6 ++++-- .../components/TimelineTrackHeader.test.tsx | 6 ++++-- .../components/TimelineTrackPlainHeader.tsx | 16 +++++++++------- 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/packages/studio/src/player/components/LayerDisclosureRow.tsx b/packages/studio/src/player/components/LayerDisclosureRow.tsx index 6ce5e339b..ef5b580a2 100644 --- a/packages/studio/src/player/components/LayerDisclosureRow.tsx +++ b/packages/studio/src/player/components/LayerDisclosureRow.tsx @@ -95,9 +95,9 @@ export function LayerDisclosureRow({ - - {name} - + {/* Wraps rather than truncating: a truncated name needs a hover to be + read, which a scanned column cannot rely on. */} + {name} {children} {/* Anchored right, on every header that has one: the lane toggle is the diff --git a/packages/studio/src/player/components/TimelineGroupHeader.tsx b/packages/studio/src/player/components/TimelineGroupHeader.tsx index 64a1fa941..d477f732a 100644 --- a/packages/studio/src/player/components/TimelineGroupHeader.tsx +++ b/packages/studio/src/player/components/TimelineGroupHeader.tsx @@ -65,7 +65,9 @@ function GroupNameButton({ - {label} + {/* Wraps rather than truncating — a name that needs a hover to be read + is no use in a column you scan. */} + {label}