Commit f9c8f12
committed
feat(chat): your turn sits right, the assistant's stays left — T6
docs/CHAT-TYPOGRAPHY.md D8, taken from the reference: in the Claude Code console your
messages are right-aligned bubbles and the replies are left-aligned prose.
This is the half T4 was missing, and it closes a risk T4 opened rather than adding polish.
T4 dropped the labels and left the BUBBLE carrying the speaker distinction alone — but the
bubble is `--field-bg` on a `--border` outline, near-invisible in some themes. On a
low-contrast theme the transcript could read as one undifferentiated voice, which is
exactly the failure D6 set out to avoid. Side is unmissable in every theme, at every
contrast, and costs no chrome.
Three decisions, each with a way to get it wrong:
- `align-items`, NOT `text-align`. The bubble is what moves; the prose inside it stays
left. `text-align: right` looks identical on a one-line message and is unreadable on a
three-line one — the suite fails on it.
- The bubble HUGS its content, so "Yes" is a 47px bubble and a pasted stack trace is a
wide one. The shape of a turn now carries what the label used to spell out.
- Capped at 85%, not 100%. At 100% a long question fills the measure, reads as a
full-width block again, and the side cue disappears when the transcript is densest.
Measured in headless Chrome at a 680px column, against develop:
before after
short bubble ("Yes") 680px 46.9px, flush right
long user turn 680px 578px — exactly the 85% cap
assistant 680px left 680px left (unchanged)
text-align in bubble start start
Tint stays as the secondary cue rather than being dropped: side alone would fail on any
surface that reflows the log to one column.
Guards, each bypass-verified by reverting the fix:
- alignment dropped; text-align:right substituted for align-items (the trap)
- the assistant pushed right too, which erases the asymmetry that IS the cue
- the bubble no longer hugging; the cap removed; the cap raised to 100%
- row direction, which would put the checkpoint control beside the bubble
T3 (code surfaces) is now the only slice of the plan still outstanding.
27 tests in webviewCss, 32 suites green.1 parent c13ec4d commit f9c8f12
3 files changed
Lines changed: 105 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
166 | 199 | | |
167 | 200 | | |
168 | 201 | | |
| |||
185 | 218 | | |
186 | 219 | | |
187 | 220 | | |
188 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
189 | 228 | | |
190 | 229 | | |
191 | 230 | | |
| |||
195 | 234 | | |
196 | 235 | | |
197 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
198 | 242 | | |
199 | 243 | | |
200 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
218 | 236 | | |
219 | 237 | | |
220 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
440 | 482 | | |
441 | 483 | | |
442 | 484 | | |
| |||
0 commit comments