Repository navigation
fix(v2): zh-CN body copy takes line-height 1.6 and a 12px floor (TASK-055 class 2) - #1254
Conversation
|
Gated at Merge-order constraintThis PR and #1253 both append to Whichever lands second needs a rebase. Guard brittleness (non-blocking)Both anchors are exact source strings, and one spans a line break: v2.indexOf('.v2-root:lang(zh) .v2-msg__content,')
v2.indexOf('.v2-root:lang(zh) .v2-chat__composer-hint,\n.v2-root:lang(zh) button.v2-inspector__tab')Reordering the selector list — a formatting change with no behavioural effect — fails the test. Worse, the failure reads as "the CJK line-height rule is missing," which is a diagnosis for a defect that isn't there. Matching on the block containing Verified
Not verifiedI did not render the harness — the 1.55 / 1.45 / 11px measurements in the comments are yours and I took them as given. My review is of the CSS text, the guard, and the merge simulation. |
…-055 class 2) Measured in a real browser via .dev/task-055-zh-harness.html: .v2-msg__content rendered Chinese at 1.55 (21.7px/14px), composer hint and inspector meta at 1.45, and the composer hint (11px) / inspector tab (11.5px) below the 12px CJK legibility floor. One :lang(zh) block lifts the body-copy selectors to 1.6 and floors the two sub-12px controls; single-line nowrap rows are left alone since their height is not text-driven. English is unchanged. Co-Authored-By: Claude Fable 5 <[email protected]>
377b380 to
3261f71
Compare
TASK-055 — rule class 2 of 3: CJK body line-height 1.6 + 12px floor
Sam cleared these as repair under the UI freeze (TASK-055 row, 2026-08-26 07:07Z). Scoped to
:lang(zh); English renders byte-for-byte the same.Measured (real browser,
.dev/task-055-zh-harness.html, realv2.css, zh-CN strings, 1200 / 390):.v2-msg__content14px at21.7px(1.55),.v2-chat__composer-hint11px at 1.45,.v2-inspector__pod-meta12px at 1.45; the composer hint (11px) and inspector tab (11.5px) render CJK below the 12px legibility floor.Fix: one
:lang(zh)block lifts the body-copy selectors (message content, composer/delivery/readonly hints, first-run lede, inspector meta/goal/empty/detail, modal/invite/login hints, billing note, approval summary) toline-height: 1.6, and floors the composer hint + inspector tab at 12px. Single-linenowrap+ ellipsis rows are untouched — their height is not text-driven.Guard: presence test in
v2-layout-invariants.test.ts.Sibling PRs: #1253 (class 1, tracking reset); class 3 (i18n literals) follows.
🤖 Generated with Claude Code