style(desktop): right-align user messages as chat bubbles#3356
Closed
expfukck wants to merge 1 commit into
Closed
Conversation
Right-align user messages with a subtle accent-soft background bubble, matching the classic chat layout used by ChatGPT, Claude Desktop, iMessage, and similar products. This makes it easy to visually scan for user messages amidst long AI responses. Changes (CSS-only, no component logic): - .msg--user: margin-left auto, accent-soft background, rounded corners, max-width 75%, fit-content width - .msg__caret: hidden (redundant in bubble layout) - .rewind: remove margin-left auto (now inside bubble) - .msg--user .msg__text: flex-grow for proper wrapping Uses existing CSS variables (--accent-soft) so all themes (dark/light and every style variant) are automatically supported.
24934ae to
9a0064e
Compare
Author
|
Closing — upstream already implemented right-aligned user message bubbles in recent commits (msg--user with justify-content: flex-end, msg__body bubble styling, caret removal, hover-reveal rewind). No longer needed. |
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.
Problem
User messages and AI responses are both left-aligned, making it hard to quickly locate user messages when scrolling through long conversations. User inputs are typically 1-2 lines while AI outputs are dozens of lines — with everything stacked on the left, user messages get visually buried.
This differs from the classic chat layout used by ChatGPT, Claude Desktop, iMessage, WeChat, Slack, etc., where user messages are right-aligned and AI messages are left-aligned.
Solution
Right-align user messages as chat bubbles with a subtle
accent-softbackground. AI messages remain left-aligned. Pure CSS change — no component logic modified.Before
After
Changes (1 file, +12/-7 lines)
desktop/frontend/src/styles.css:.msg--user: right-align withmargin-left: auto, addaccent-softbackground bubble withborder-radius: 14px 14px 4px 14px,max-width: 75%,width: fit-content.msg__caret: hidden (redundant in bubble layout).rewind: removemargin-left: auto(now flows inside bubble).msg--user .msg__text:flex: 1 1 auto; min-width: 0for proper text wrappingTheme compatibility
Uses the existing
--accent-softCSS variable, which is already defined for every theme variant (dark, light, graphite, ember, aurora, midnight, sandstone, porcelain, linen, glacier). All themes are automatically supported with no extra work.