Skip to content

fix(chat): tighten assistant message typography (0.0.7)#170

Merged
blove merged 1 commit into
mainfrom
claude/chat-07-polish-pass2
May 2, 2026
Merged

fix(chat): tighten assistant message typography (0.0.7)#170
blove merged 1 commit into
mainfrom
claude/chat-07-polish-pass2

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 2, 2026

Summary

Two micro-polish tweaks to the assistant message body, picked up during a careful visual review.

Changes

  1. Add horizontal padding to .chat-message__assistant-body: previously zero, so plain assistant text touched container edges in narrow containers (popup window, sidebar panel). Adds `padding: 0 12px 0 4px` — 12px right for breathing room, 4px left as a slight inset.

  2. Tighten assistant line-height from 1.6 → 1.55: 1.6 felt a touch airy. 1.55 reads more compactly while still comfortably above WCAG's 1.5 minimum. Markdown paragraphs keep their own line-height (1.75) via `chat-markdown.styles`, so this only affects plain (non-markdown) assistant text.

Net change: +1 line, 1 modified line.

Verification

  • `nx build chat` clean
  • `nx test chat` clean
  • `nx lint chat` clean
  • Pure CSS, no API change.

Test plan

  • Build / test / lint pass
  • CI green
  • Tag v0.0.7 to publish

🤖 Generated with Claude Code

Two small visual refinements to the assistant message body, found
during a careful visual comparison against established chat UI
conventions:

1. Add `padding: 0 12px 0 4px` to .chat-message__assistant-body —
   the previous zero horizontal padding let text touch container
   edges (especially noticeable in narrow containers like popup +
   sidebar). 12px right gives breathing room before the right edge;
   4px left keeps a slight inset so the text doesn't crash into any
   left-side adornment.

2. Tighten the assistant body line-height from 1.6 to 1.55. The
   1.6 felt slightly airy; 1.55 reads more compactly while still
   well above WCAG minimum. Markdown paragraphs keep their own
   line-height (1.75) per chat-markdown.styles, so this only
   affects plain assistant text.

Pure CSS, no API change. Bumps @ngaf/chat to 0.0.7.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 2, 2026 4:04am

Request Review

@blove blove merged commit 17ad443 into main May 2, 2026
14 checks passed
@blove blove deleted the claude/chat-07-polish-pass2 branch May 7, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant