Repository navigation
Conversation
A tool page's title had flex-basis auto, so in the header's wrapping row a title longer than the space left broke onto a line of its own and pushed the actions to a third: a subtask with a 250-character title made the task page's header 105 px instead of 47. The title now asks for 6 rem before the actions wrap and takes the room up to its whole text at every width, as a narrow header already did, and the task's own crumb gives way before the project and its parents. A new story, Screens/Shell LongSubtaskPage, and a Playwright check (scripts/ui-check/header-row.spec.ts) hold the header to one row at 1280 and 1462 px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
The new story's baselines showed "Inb…" and "Renew passp…": with flex-shrink 999 on the task's crumb the steps up still took a fraction of a pixel of the shrink, enough for an ellipsis, and the check missed it because scrollWidth rounds. The task's crumb now has basis 0 and grows into the room the steps leave, and it is a TruncatedText, so a cut title shows whole on hover and focus. The check measures the text against its content box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
pixari
marked this pull request as ready for review
November 28, 2026 13:34
pixari
enabled auto-merge
November 28, 2026 13:34
6 of 8 tasks
pixari
added this pull request to the merge queue
Nov 28, 2026
Any commits made after this event will not be merged.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 28, 2026
pixari
added this pull request to the merge queue
Nov 28, 2026
Any commits made after this event will not be merged.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
pixari
added this pull request to the merge queue
Nov 28, 2026
Any commits made after this event will not be merged.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Fixes #2134
The compact header is one 46 px row (
app-shell"Page template"), but a task page for a subtask with a long title grew to three rows. The cause: in the header's wrapping row the title hadflex-basis: auto, so its line-breaking size was the whole breadcrumb's max-content width. A title longer than the space left broke onto a line of its own, and the actions then wrapped onto a third. Only a narrow header (under 40 rem) gave the title a small basis.We now give a tool page's title the same rule at every width: it asks for 6 rem before the actions wrap and grows up to its whole text (
basis-24 grow-[999] max-w-max, the narrow header's existing class). When the room is there, nothing moves. In the task path, the task's own crumb (its title is shown whole on the page below) now has basis 0 and grows into the room the project and the parents leave, so "Inbox" and the parent's name stay whole while they fit. It is aTruncatedText, so a cut title shows whole on hover and keyboard focus. This restores the spec, so there is no OpenSpec change.The test is a new story,
Screens/Shell › Long subtask page(a 250-character subtask opened as its page), andscripts/ui-check/header-row.spec.ts, which runs in the UI check. At 1280 and 1462 px it checks that the header is as tall as the short task page's, that the sidebar toggle, the path, Close and Help share one line, that the task title is cut, and that the steps up are not (their text measured against their content box, since an ellipsis can cost a fraction of a pixel thatscrollWidthrounds away). Onmainit fails with a header 105 px tall instead of 47, the numbers in the issue.UI baselines: the new story needs its four baselines (
screens-shell--long-subtask-page, light and dark, 1280 and 375). We measured every page header in all 847 stories at 1280 and 375 px before and after the change. Nothing else moved, so no existing baseline should change.Checked:
npm run typecheck, eslint on the changed files,make ui-lint, vitest forsrc/ui/patternsand the task page, path, page focus, phone and row layout tests (85 tests), and the new Playwright spec against a Storybook build.narrowHeader.test.tsxasserted that a wide title had no give-way class, so we updated it to the new rule.Checklist
openspec/changes/<name>/), or this PR has nonemake checkpasses locally (we ran the checks listed above, not the fullmake check)Co-Authored-Bytrailerinternal/httpapi/policy.go(public("reason")only when the spec says so)changelog.d/<Section>/<name>.md(not inCHANGELOG.md); size impact noted for new dependenciestemplates/(or may license it) and agree to publish it under CC BY 4.0;make templatesis committedhttps://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
Generated by Claude Code