From 5294693e97e5dde12ad2bbf254718a01189008fc Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 13 Jan 2023 16:22:50 -0300 Subject: [PATCH] Style message as speech bubbles on chat page of web interface - Wrap messages into speech bubbles - Color messages by khoj blue, sender grey - Add those standard protrusions to the speech bubbles for fun - Align bubbles left or right based on sender - messages by khoj are left aligned, message by self are right aligned - Put message metadata like sender and time under speech bubble - use data-* attribute and ::after css pseudo-selector for this - Update renderMessage func to accept time param, remove unused type_ param --- src/interface/web/chat.html | 92 ++++++++++++++++++++++++++++++------- 1 file changed, 75 insertions(+), 17 deletions(-) diff --git a/src/interface/web/chat.html b/src/interface/web/chat.html index 48867edc..7ad57c4c 100644 --- a/src/interface/web/chat.html +++ b/src/interface/web/chat.html @@ -10,29 +10,33 @@