Move user message metadata outside the chat bubble#836
Move user message metadata outside the chat bubble#836dbalders wants to merge 1 commit intopingdotgg:mainfrom
Conversation
Split the user message container so the gray bubble wraps only the message content. Render the timestamp and action buttons below the bubble on the white background to remove the large gray gap under short messages.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the user-message layout in the chat timeline so the “bubble” background applies only to the message content (text/attachments), while the timestamp and hover action buttons render outside the bubble on the page background—addressing the UI concern raised in #832.
Changes:
- Wrapped user messages in an outer flex column container and moved the metadata/actions row outside the bubble container.
- Adjusted sizing/alignment classes to keep the bubble fitting content while preserving the existing max width constraint.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What Changed
Added a wrapper div around user chat messages so only the message content keeps the gray background, while the timestamp and action buttons render outside the bubble on the white background.
Why
Fixes #832 - Just feel this has a better look, especially for longer messages so there isn't a huge gray area below every message.
UI Changes
Before:

After:

Checklist
Note
Move user message metadata outside the chat bubble in
MessagesTimelineRestructures the user message layout in ChatView.tsx so the action toolbar sits below the bubble as a sibling element rather than inside it. The bubble is now wrapped in a right-aligned flex column container, sized to its content with
w-fit, and the toolbar gets slight right padding (pr-1) to align with the bubble edge.Macroscope summarized 823c24a.