Skip to content

Fix chat message alignment#333

Merged
TeddyScript101 merged 2 commits intomainfrom
abrar/feature/chat-ui-alignment
May 9, 2026
Merged

Fix chat message alignment#333
TeddyScript101 merged 2 commits intomainfrom
abrar/feature/chat-ui-alignment

Conversation

@abrar-deakin
Copy link
Copy Markdown
Collaborator

Changes made:
Aligned sent messages to the right
Aligned received messages to the left
Improved message bubble styling for better UI consistency
Applied proper spacing and layout for chat rows
Testing:
Verified UI in emulator
Messages now display correctly based on sender

@Krisha190235
Copy link
Copy Markdown
Collaborator

can you please provide some screenshots ?

@Krisha190235
Copy link
Copy Markdown
Collaborator

Hey — tested #333 on top of #311. Both users' messages render on the right with the same dark bubble; the other person should be on the left. MessagesScreen.tsx decides alignment by sender role instead of "is this me?".

Screenshot 2026-05-04 at 12 11 20 pm Screenshot 2026-05-04 at 12 12 47 pm

@abrar-deakin
Copy link
Copy Markdown
Collaborator Author

Tested the messaging feature using both guard and employer accounts.

Guard messages are displayed on the left side, while employer messages are displayed on the right side correctly. The sender-based alignment issue is now fixed and working as expected.
image
image

@TeddyScript101 TeddyScript101 merged commit 0ef2d9a into main May 9, 2026
2 checks passed
@TeddyScript101 TeddyScript101 deleted the abrar/feature/chat-ui-alignment branch May 9, 2026 10:14
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.

3 participants