Commit b315f45
committed
feat(chat): a font-independent wordmark for the empty state
Replaces the pixel-art mark from #82, which shattered into disconnected bars in the editor.
WHY THIS ONE SURVIVES WHERE THAT ONE DID NOT. The old mark drew letterforms out of `█`,
which only works where the font FILLS the character cell — a property of the font, not the
character, and one Monaco does not have. This mark asks for neither: the frame is built
from box-drawing rules, which are CONNECTOR glyphs designed to join across cells in every
monospace family, and the letters are real text rather than pixels. The `▁▃▅█` ramp is the
only block run left, and it is a decorative ascent — "level" made literal — so a font that
renders it slightly short costs nothing.
Verified before shipping this time, which is the part I skipped last time: rendered in
Monaco, SF Mono, Menlo, Courier New, Andale Mono, Consolas and the generic fallback, plus
the real empty state in Monaco in both themes. Legible in all seven. Monaco leaves hairline
gaps at the frame's corners and nothing else.
The mark is 32 columns where the old one was 41, so the container-query factor moves with
it: clamp(5px, 3.6cqi, 13px) -> clamp(5px, 4.6cqi, 13px). Those two numbers are halves of
one value — 41 x 3.6 and 32 x 4.6 both land the mark at ~88% of its container — and the
test now pins the RELATIONSHIP rather than either number, because changing the art without
the factor is the way this breaks: widen it and it overflows, narrow it and it becomes a
stamp floating in white space. The failure message reports the computed fill percentage.
The old guard, which required full blocks only, is gone. It encoded a false belief as a
rule and would have blocked this fix while waving through the bug it was written for.
Guards, each bypass-verified by reverting the fix:
- the cqi left at the old 41-column value (69% fill — a stamp)
- the cqi raised too far (115%) and the art widened without it (127%)
- sizing no longer container-relative at all
- role="img" dropped; the accessible name dropped
33 tests in webviewCss, 34 suites green.1 parent 9f4ff5d commit b315f45
2 files changed
Lines changed: 34 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
1259 | 1259 | | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1274 | 1267 | | |
1275 | 1268 | | |
1276 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
586 | 586 | | |
587 | | - | |
588 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
589 | 594 | | |
590 | 595 | | |
591 | 596 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 597 | | |
597 | 598 | | |
598 | | - | |
599 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
600 | 615 | | |
601 | 616 | | |
602 | 617 | | |
| |||
0 commit comments