Skip to content

fix(chat-welcome): apply suggestions gap one level down for wrapped chips#465

Merged
blove merged 1 commit into
mainfrom
claude/chat-welcome-suggestions-gap
May 19, 2026
Merged

fix(chat-welcome): apply suggestions gap one level down for wrapped chips#465
blove merged 1 commit into
mainfrom
claude/chat-welcome-suggestions-gap

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 19, 2026

Summary

The chat welcome screen's suggestion chips had no visible gap between them on c-a2ui (and a subtle one on c-generative-ui).

Root cause: `.chat-welcome__suggestions` is `display: flex; gap: 8px`, but every consumer projects chips wrapped in a single `

` — so the slot's flex gap fires between exactly zero pairs of divs (there's only one), and the chips inside that div sit flush.

Fix

Add a one-level-deeper CSS rule: `.chat-welcome__suggestions > div` also gets `display: flex; gap: 8px`. Safe no-op when consumers project chips directly without a wrapper div.

Files

  • `libs/chat/src/lib/styles/chat-welcome.styles.ts` — one new CSS rule

Test plan

  • `npx nx run chat:build` / `chat:test` — green
  • `npx nx run cockpit-chat-a2ui-angular:build` — green
  • Chrome MCP smoke locally: c-a2ui welcome chips now show a clear 8px gap (`LAX → JFK` and `SFO → SEA` no longer touch)
  • CI

🤖 Generated with Claude Code

…hips

The `.chat-welcome__suggestions` slot in `chat-welcome` had `display:
flex; gap: 8px` so projected children would be spaced. But every
consumer in the cockpit (and the c-a2ui example) projects suggestions
wrapped in a single `<div chatWelcomeSuggestions>` element — meaning
the slot's gap fires between *zero pairs of divs* (there's only one),
and the chips inside that div sit flush against each other with no
gap.

Visible on c-a2ui with the recently-added 'LAX → JFK' / 'SFO → SEA'
chips: the two pills touched. Less visible on c-generative-ui because
the chips have longer labels and natural padding masks the issue —
but the same bug.

Add a one-level-deeper rule that re-applies the same flex layout to
any wrapping `<div>` child of the slot. Safe no-op when consumers
project `<chat-welcome-suggestion>` directly (no wrapper div).

Verified locally via chrome MCP: c-a2ui welcome chips now show a
clear 8px gap.

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

vercel Bot commented May 19, 2026

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

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 19, 2026 4:45pm

Request Review

@blove blove merged commit 5b1afbc into main May 19, 2026
18 checks passed
@blove blove deleted the claude/chat-welcome-suggestions-gap branch May 19, 2026 16:50
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