Skip to content

style(desktop): right-align user messages as chat bubbles#3356

Closed
expfukck wants to merge 1 commit into
esengine:main-v2from
expfukck:feat/user-message-right-align
Closed

style(desktop): right-align user messages as chat bubbles#3356
expfukck wants to merge 1 commit into
esengine:main-v2from
expfukck:feat/user-message-right-align

Conversation

@expfukck
Copy link
Copy Markdown

@expfukck expfukck commented Jun 6, 2026

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-soft background. AI messages remain left-aligned. Pure CSS change — no component logic modified.

Before

› User message text here...
Assistant response that is very long...
› Another user message...
Another long assistant response...

After

                              [User message text here...]
Assistant response that is very long...
                              [Another user message...]
Another long assistant response...

Changes (1 file, +12/-7 lines)

desktop/frontend/src/styles.css:

  • .msg--user: right-align with margin-left: auto, add accent-soft background bubble with border-radius: 14px 14px 4px 14px, max-width: 75%, width: fit-content
  • .msg__caret: hidden (redundant in bubble layout)
  • .rewind: remove margin-left: auto (now flows inside bubble)
  • .msg--user .msg__text: flex: 1 1 auto; min-width: 0 for proper text wrapping

Theme compatibility

Uses the existing --accent-soft CSS 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.

@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jun 6, 2026
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.
@expfukck expfukck force-pushed the feat/user-message-right-align branch from 24934ae to 9a0064e Compare June 7, 2026 00:41
@github-actions github-actions Bot added the desktop Wails desktop app (desktop/**) label Jun 7, 2026
@expfukck
Copy link
Copy Markdown
Author

expfukck commented Jun 7, 2026

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.

@expfukck expfukck closed this Jun 7, 2026
@expfukck expfukck deleted the feat/user-message-right-align branch June 7, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant