Skip to content

Refactor: Improve MessageItem layout and styling#4208

Merged
jamesarich merged 1 commit into
mainfrom
feat/message-ui-2
Jan 14, 2026
Merged

Refactor: Improve MessageItem layout and styling#4208
jamesarich merged 1 commit into
mainfrom
feat/message-ui-2

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

This commit refactors the MessageItem component with the following changes:

  • Removes OutlinedCard and replaces it with Surface for the original message snippet to allow for more flexible shaping.
  • Adjusts padding and offsets for reaction emojis for better visual alignment.
  • Reverses the order of reaction emojis for messages sent by the local user.
  • Passes hasSamePrev to OriginalMessageSnippet to enable dynamic message bubble shaping, improving the continuity of replied messages in the chat.

followup to #4206
image

This commit refactors the `MessageItem` component with the following changes:

- Removes `OutlinedCard` and replaces it with `Surface` for the original message snippet to allow for more flexible shaping.
- Adjusts padding and offsets for reaction emojis for better visual alignment.
- Reverses the order of reaction emojis for messages sent by the local user.
- Passes `hasSamePrev` to `OriginalMessageSnippet` to enable dynamic message bubble shaping, improving the continuity of replied messages in the chat.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added enhancement New feature or request needs-review labels Jan 14, 2026
@jamesarich jamesarich enabled auto-merge January 14, 2026 03:29
@jamesarich jamesarich added this pull request to the merge queue Jan 14, 2026
@codecov

codecov Bot commented Jan 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (028596e) to head (dd45dce).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4208   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         23      23           
  Branches       7       7           
=====================================
  Misses        23      23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Merged via the queue into main with commit 418ebe3 Jan 14, 2026
8 checks passed
@jamesarich jamesarich deleted the feat/message-ui-2 branch January 14, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request needs-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant