fix(chat): one 24px gap between message groups, 6px in a run; seen faces in the text gutter
Merged
RA
1d ago+195+195+012345678901234567890123456789-34-34-01234567890123456789
Message spacing now comes from layout, not from footer rows, and is the same everywhere.
- Between message groups: always 24px (
mt-5+pt-1), whatever sits under the message above (nothing, choice buttons, seen faces, reactions). Before: 8px with nothing under, 36px with the faces row. - Inside a run of the same person: 6px (was 2px).
- Seen faces with no reaction chips no longer take a row: every message keeps a right gutter (88px desktop / 60px phone) and the faces sit there, right-aligned, centered on the last line. With chips or a status line the faces stay in that row as before. Phone stack shows 1 face + "+N".
- Root cause of the earlier tight agent replies (#537): replies are always their own group; this PR finishes the job by making the gap independent of footers.
| Under the message | main | this PR |
|---|---|---|
| nothing / choices | 8px | 24px |
| seen faces | 36px | 24px |
| reactions | 32px | 24px after the chips row |
| in a run | 2px | 6px |
Checks: bun run check (chat DOM tests incl. new gutter/class tests), design-system suite. No hover layout shift.
š¤ Generated with Claude Code
Summary by cubic
Message spacing now comes from the layout, not from footer rows, so it's the same everywhere.
- A message group (avatar and name) always starts 24px below whatever sits under the previous message, and runs of the same person sit 6px apart (was 2px).
- Seen faces with no reaction chips or status line no longer take a row of their own: every message keeps a right gutter (88px desktop / 60px phone) and the faces sit there, right-aligned on the text's last line. Phone stack shows one face and "+N".
Spacing changes
| Under the message | main | this PR |
|---|---|---|
| nothing / choices | 8px | 24px |
| seen faces | 36px | 24px |
| reactions | 32px | 24px after the chips row |
| in a run | 2px | 6px |