Repository navigation
Restrain heading type scale: H1 1.5rem ceiling, H4–H6 at body size (closes #2717) - #3044
Conversation
… body size (closes #2717) H1–H3 now 1.5/1.25/1.125rem, H4–H6 1rem, weight 600 throughout. A heading never renders smaller than body text. Header nodes keep the circle indicator; level is carried typographically. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Pragmatic Code Review — PR #3044Review Type: Initial Review — CSS-only, 2 files ( Requirements Check (#2717 decision)
The two edited files agree on every font-size / line-height / Code Review Findings🟡 Important: Third copy of the old heading scale left stale📁
🟡 Important: Scale duplicated between header-node and node-row📁 Both files hardcode the same triples. That duplication is what let the NodeTree copy drift. It pre-dates this PR, and the PR reduces it. Suggest a follow-up: 🟢 Suggestion: Empty-header
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: COMMENT — approve once the stale NodeTree heading-scale copy is handled. Full findings in the review comment above.
…level - Delete unused NodeTree component (only a barrel re-export, never imported) which held a stale third copy of the old heading scale - Empty header min-height now calc(--font-size * --line-height) so an empty H1/H2 doesn't grow on first keystroke - Skipped: shared heading tokens (filed #3046, out of scope); H4-H6 icon offset (~0.8px, unchanged from old H5) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review addressed (ee4ea2d)
desktop-app quality:fix is clean (0 errors), and the header/node-row tests pass (108/108). Re-review: not needed. The changes delete unused code and make a one-line CSS change. |
Decision (#2717)
Heading hierarchy is typographic. Header nodes keep the circle indicator (the square H-badge DESIGN.md described was never implemented and is dropped); level is carried by a restrained type scale plus the visible
#syntax in edit mode.Changes
header-node.svelte/node-row.svelte(duplicated sizes for icon/chevron positioning): H1 2→1.5rem, H2 1.5→1.25rem, H3 1.25→1.125rem, H4–H6 → 1rem (H6 was 0.875rem, below body). Weight bold→600. H1–H3 line-height 1.3, H4–H6 1.4.Notes
pro-sync-settings-refresh.test.tshook timeout (5000ms) under full-suite load; passes in isolation.🤖 Generated with Claude Code