-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added user name under message box in frontend
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
15 changes: 8 additions & 7 deletions
15
frontend/src/app/chat-messages/chat-messages.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<div class="message-item flex items-start mb-4 last:mb-0"> | ||
<img class="rounded-full mr-4" [src]="message.avatar" width="40" height="40" [alt]="message.user" /> | ||
<div class="max-w-[480px]"> | ||
<div class="text-sm p-3 rounded-lg rounded-tl-none border border-transparent shadow-md mb-1 overflow-auto break-words" | ||
[ngClass]="message.bgClass" | ||
[ngStyle]="{'color': message.textColor}" | ||
[innerHTML]="message.text"> | ||
</div> | ||
<img class="rounded-full mr-4" [src]="message.avatar" width="40" height="40" [alt]="message.user" /> | ||
<div class="max-w-[480px]"> | ||
<div class="text-sm p-3 rounded-lg rounded-tl-none border border-transparent shadow-md mb-1 overflow-auto break-words" | ||
[ngClass]="message.bgClass" | ||
[ngStyle]="{'color': message.textColor}" | ||
[innerHTML]="message.text"> | ||
</div> | ||
<div class="message-username text-xs mt-1 font-semibold text-gray-500">{{message.user}}</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters