Skip to content

fix(react): keep a header name's zone icon beside its first line - #971

Merged
eizedev merged 3 commits into
mainfrom
fix/header-icon-wrap
Nov 26, 2026
Merged

eizedev merged 3 commits into
mainfrom
fix/header-icon-wrap

Conversation

@eizedev

@eizedev eizedev commented Nov 26, 2026

Copy link
Copy Markdown
Owner

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: baseline and one shift variable); flex-wrap is gone from the base rule. The narrow-report corner is one explicit exception, commented with its reason. Nothing appended; the existing --pk-th-extra is now applied to the corner's least width.
  • table-header.spec.js: one new test measures with a Range that 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; pinFont is not re-applied after later page loads in the new test; the narrow corner exception has no assertion of its own.

Checklist (PRODUCT.md)

  • Linked issue
  • New or changed tests fail without this change; no test weakened
  • Docs and upgrading notes describe the new state; CHANGELOG.md entry
  • Reviewed before opening by someone who did not write it

Test plan

  • npm test: 2674 pass, 0 fail
  • npm run growth passes
  • npm run test:browser: 2921 passed (26.8m), 49 skipped

🤖 Generated with Claude Code

eizedev and others added 3 commits November 26, 2026 15:20
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>
@eizedev
eizedev merged commit ba7ccc4 into main Nov 26, 2026
32 of 33 checks passed
@eizedev
eizedev deleted the fix/header-icon-wrap branch November 26, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant