Repository navigation
fix(chat): the seen gutter only on the message with faces beside its text, as wide as its stack - #673
Merged
Merged
Conversation
…text, as wide as its stack #671 kept an 88px right gutter on every message's text (60px on a phone), so text wrapped early everywhere and left an empty column on the right, worst in narrow panes. Now only the message whose faces sit beside its text (faces only, the last of a run) keeps one, sized to its stack and 12px (40px for one face, up to 96px for three, "+N" and the ✓; one face and "+N" on a phone), from a class table (no inline styles). Every other message's text has the full width. The faces stay on the last line, 24px between groups and 6px in a run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rafavalls
enabled auto-merge (squash)
November 30, 2026 14:55
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://fix-seen-gutter-only-when-faces-chat.deco-cx.workers.dev (commit d138313)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
rafavalls
added a commit
that referenced
this pull request
Nov 30, 2026
…#675) Proposal (Valls): the faces of who saw a message go back under it, and the gap between messages stays the same with or without them. A faces-only row hangs under the message body (absolute, top-full, right-aligned), 24px high in the 24px group gap, with 16px faces (AvatarStack xs; the ✓ level with the last face) centered in it: 4px clear above and below, so it never touches the next message's quote, name or avatar. It takes no height. With reaction chips the faces stay at the end of that row. A run's faces are on its last message, which a group gap follows; a notice, a day divider, a call line or the "working" bar after a faces message gets the same 24px, and the timeline ends with 24px. Removes the text gutter of #671/#673 (facesGutter and its class table): every message's text has the full width. Phone: one face and "+N". Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regression
#671 kept a fixed right gutter on every message's text (88px, 60px on a phone), so the faces of a faces-only message could sit beside the last line. Every message's text wrapped early for nothing, leaving an empty column on the right, worst in narrow panes.
Fix
facesGutter,web/features/chat/model.ts):footerFaceCountshares the footer's dedupe, so the gutter and the stack can't disagree.Why not a gutter on the last line only (float/spacer): it only works when the text ends in a paragraph or list, not with code blocks, tables, quotes or chips. It's also what produced the "faces squeezed against the text" look that was rejected before #671. The per-message rule works for any content.
Numbers (DOM measurement, local dev, same seed)
Text column width:
a2200e97)Screens
Thread on a phone: before · after
Tests
scripts/chat.test.ts:facesGutterwidths (none, one face, ✓, five faces desktop/phone) andfooterFaceCountdedupe.scripts/ui-panels.test.ts: only the faces-only messages get a gutter, of their size; the others don't.bun run checkpasses (includes the chat DOM tests).bun run test:design-systempasses.🤖 Generated with Claude Code
Summary by cubic
Fixes the regression from #671 where every message's text kept a fixed right gutter (88px on desktop, 60px on phone), forcing unnecessary early text wrapping and leaving an empty column in narrow panes. Now only a faces-only message whose faces sit beside its text keeps a gutter, sized to its face stack plus 12px; all other messages' text gets the full width.
facesGutterinweb/features/chat/model.tsreturns Tailwind classes for gutter widths (40px for one face, up to 96px for three faces, "+N", and the ✓; one face and "+N" on a phone), as a class table rather than inline styles.footerFaceCountdedupes readers who also passed, so the gutter width always matches the stack drawn.Written for commit d138313. Summary will update on new commits.