From 0a5a2637f5bb07f5c43669b3053bd858a67b7545 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 13 Mar 2021 08:47:45 +0100 Subject: [PATCH] Fix white theme issue --- assets/css/pages/conversations/conversation.css | 9 +++++++-- assets/js/pages/conversations/conversation.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/css/pages/conversations/conversation.css b/assets/css/pages/conversations/conversation.css index f4af3e86..63e130e7 100644 --- a/assets/css/pages/conversations/conversation.css +++ b/assets/css/pages/conversations/conversation.css @@ -69,8 +69,13 @@ margin: auto; } -.big-box-conversation .direct-chat-text .a, -.big-box-conversation .direct-chat-text a { +.big-box-conversation .otheruser .direct-chat-text .a, +.big-box-conversation .otheruser .direct-chat-text a { + color: black; +} + +.big-box-conversation .curruser .direct-chat-text .a, +.big-box-conversation .curruser .direct-chat-text a { color: white; } diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js index 3b6edf53..e0ab8875 100644 --- a/assets/js/pages/conversations/conversation.js +++ b/assets/js/pages/conversations/conversation.js @@ -223,7 +223,7 @@ const ConversationPageConvPart = { //Create message container var messageContainer = createElem2({ type: "div", - class: "direct-chat-msg " + (userIsOwner ? "curruser" : "") + class: "direct-chat-msg " + (userIsOwner ? "curruser" : "otheruser") }); //Apply message container