Repository navigation
fix(react): keep a header name's zone icon beside its first line - #971
Merged
Merged
Conversation
A long field name in the table's header put its zone icon on a line of its own and the name below it, such as the weather start view's corner "Date by month of year · 2023–2025 combined" at 1440 px. The name's text now shrinks beside the icon and wraps there; the icon stands on the text's baseline, moved to the middle of its first line, with a sort button of any height or without one. A row field's name in the corner gets the icon's room in its least width (--pk-th-extra, as a value's name has), so a word still fits beside the icon. On a narrow report that room would push every value out of view (#584): there a corner name keeps wrapping under its icon, as before. The new browser test fails on the old stylesheet: the corner's icon is not beside its text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The header tests that need a long corner name (the arrow after a name in two lines, the icon beside a wrapping name, the date context) now share one view without the start view's short "Month" name, defined in the fixtures: main renamed the start view's corner in #974. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
A long field name in the table header keeps its zone icon beside its first line; only the text wraps. Before, the icon stood on a line of its own above the name. In a narrow report (under 640 px), a long row field name in the corner still wraps under its icon, so a value stays in view (#584).
Refs #920
Whole-change check
styles.css, header field names: the icon sits on the text baseline (align-items: baselineand one shift variable);flex-wrapis gone from the base rule. The narrow-report corner is one explicit exception, commented with its reason. Nothing appended; the existing--pk-th-extrais now applied to the corner's least width.table-header.spec.js: one new test measures with aRangethat the icon stands beside the first line and that no word breaks, at 1440, 1280 and 390 px.CHANGELOG.md: the header icons are unreleased, so the wrap is part of their Added entry, not a separate fix.Neutral review
A separate review found no blocker. Changed because of it: the changelog entry moved into the Added entry and now names the 640 px rule instead of "a phone". Left open as follow-ups (low): the 7px icon shift assumes the 14 px icon;
pinFontis not re-applied after later page loads in the new test; the narrow corner exception has no assertion of its own.Checklist (PRODUCT.md)
CHANGELOG.mdentryTest plan
npm test: 2674 pass, 0 failnpm run growthpassesnpm run test:browser: 2921 passed (26.8m), 49 skipped🤖 Generated with Claude Code