From 2294c4ee3acae93d64f721eb1da45934b23ea508 Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Fri, 2 Aug 2024 11:40:11 +0100 Subject: [PATCH] fix visual representation of my message and other messages --- .../shared/chat/messages/messages.page.scss | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/app/shared/chat/messages/messages.page.scss b/src/app/shared/chat/messages/messages.page.scss index a7e20c885..4db736f3c 100644 --- a/src/app/shared/chat/messages/messages.page.scss +++ b/src/app/shared/chat/messages/messages.page.scss @@ -156,15 +156,6 @@ ion-content { .other-message, .my-message { - - - // Common styles for incoming messages - display: flex; - /* justify-content: flex-end; */ - align-items: end; - flex-direction: column; - //margin-bottom: 10px; // Adjust as needed - //padding: 5px; // Adjust as needed .message-container { padding: 15px 20px; margin: 10px 20px 10px 75px; @@ -174,7 +165,10 @@ ion-content { } .other-message { - + display: flex; + /* justify-content: flex-end; */ + align-items: start; + flex-direction: column; // float: left; // Styles for incoming messages from other users justify-content: flex-start; @@ -189,9 +183,10 @@ ion-content { .my-message { - //float: right; - // Styles for incoming messages from the current user - justify-content: flex-end; + display: flex; + /* justify-content: flex-end; */ + align-items: end; + flex-direction: column; } .message-bubble {