Skip to content

fix(#104): Message bubble visual distinction#180

Open
Okorie2000-code wants to merge 1 commit into
Lumina-eX:mainfrom
Okorie2000-code:fix-104-message-bubble-visual-distinction
Open

fix(#104): Message bubble visual distinction#180
Okorie2000-code wants to merge 1 commit into
Lumina-eX:mainfrom
Okorie2000-code:fix-104-message-bubble-visual-distinction

Conversation

@Okorie2000-code

@Okorie2000-code Okorie2000-code commented Jun 8, 2026

Copy link
Copy Markdown

Summary

Fixes #104 — Message bubbles now visually distinguish between the current user and other participants.

Changes

  • Alignment: Own messages right-aligned, others left-aligned using full-width flex row wrapper (justify-end/justify-start)
  • Colors: Own messages use bg-primary (theme primary color); others use bg-card with a subtle border
  • Timestamp: Moved below the bubble (outside the content area) for clear visibility on all messages
  • Sender label: "Anonymous" label shown above other users' bubbles

File Changed

  • app/chat/page.tsx — message rendering loop

Testing

  • Build passes with no TypeScript errors (pnpm build)
  • Verified all acceptance criteria from issue Chat Message Bubble UI with Sender Differentiation #104:
    • Current user messages aligned right
    • Other users messages aligned left
    • Different background colors for each
    • Timestamp shown below message closes#104

- Wrap each message in full-width flex row (justify-end/start) for proper left/right alignment
- Own messages: right-aligned, bg-primary color
- Other messages: left-aligned, bg-card with border
- Timestamp moved below bubble (outside) for clearer visibility
- Anonymous sender label shown above other users' bubbles
@Okorie2000-code

Copy link
Copy Markdown
Author

Summary

Fixes #104 — Message bubbles now visually distinguish between the current user and other participants.

Changes

* **Alignment**: Own messages right-aligned, others left-aligned using full-width `flex` row wrapper (`justify-end`/`justify-start`)

* **Colors**: Own messages use `bg-primary` (theme primary color); others use `bg-card` with a subtle border

* **Timestamp**: Moved below the bubble (outside the content area) for clear visibility on all messages

* **Sender label**: "Anonymous" label shown above other users' bubbles

File Changed

* `app/chat/page.tsx` — message rendering loop

Testing

* Build passes with no TypeScript errors (`pnpm build`)

* Verified all acceptance criteria from issue [Chat Message Bubble UI with Sender Differentiation #104](https://github.com/Lumina-eX/AnonChat/issues/104):
  
  * [x]  Current user messages aligned right
  * [x]  Other users messages aligned left
  * [x]  Different background colors for each
  * [x]  Timestamp shown below message

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.

Chat Message Bubble UI with Sender Differentiation

1 participant