Skip to content

Chat UI: distinct background band for user messages - #225

Open
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/chat-user-msg-bg
Open

Chat UI: distinct background band for user messages#225
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/chat-user-msg-bg

Conversation

@arsenmuk

Copy link
Copy Markdown
Member

In dark mode, user and assistant messages render on near-identical backgrounds. This gives user messages their own background band so the two roles read as distinct when scrolling.

Changes

  • UserMessage.tsx: add msg-user class + data-role="user" (mirrors the existing AssistantMessage pattern).
  • index.css: .msg-user--theme-surface-hover in dark; light mode stays transparent — user messages already sit on the page bg, and the assistant band stays white.

CSS + one className; no behavior change.

In dark mode user and assistant messages render on near-identical
backgrounds. Give user messages their own background band so the two
roles read as distinct when scrolling.

- UserMessage.tsx: add `msg-user` class + `data-role="user"` (mirrors AssistantMessage).
- index.css: `.msg-user` -> `--theme-surface-hover` in dark; light mode stays
  transparent (user messages already sit on the page bg; assistant band stays white).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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