From 5cfa0920178b276671883c7bcc733def7ca8b36e Mon Sep 17 00:00:00 2001 From: Justin Ferrari <‘justinwesleyferrari@gmail.com’> Date: Fri, 11 Nov 2022 14:57:54 -0500 Subject: [PATCH] Started Chat UI Refactor --- qortal-ui-core/font/switch-theme.css | 4 + qortal-ui-core/src/styles/switch-theme.css | 4 + .../plugins/core/components/ChatPage.js | 82 ++--- .../core/components/ChatScroller-css.js | 40 ++- .../plugins/core/components/ChatScroller.js | 287 +++++++++--------- 5 files changed, 226 insertions(+), 191 deletions(-) diff --git a/qortal-ui-core/font/switch-theme.css b/qortal-ui-core/font/switch-theme.css index 4c65b30c..008718d9 100644 --- a/qortal-ui-core/font/switch-theme.css +++ b/qortal-ui-core/font/switch-theme.css @@ -8,6 +8,8 @@ html { --border2: #dde2e8; --copybutton: #707584; --chat-bubble: #efefef73; + --chat-bubble-bg: #f3f3f3; + --chat-bubble-msg-color: #080808; --sectxt: #576374; --vdicon: #707b8a; --tradehead: #6a6c75; @@ -45,6 +47,8 @@ html[theme="dark"] { --border2: #0b305e; --copybutton: #d0d6de; --chat-bubble: #9694941a; + --chat-bubble-bg: #2d3749; + --chat-bubble-msg-color: #ffffff; --sectxt: #bbc3cd; --vdicon: #d0d6de; --tradehead: #008fd5; diff --git a/qortal-ui-core/src/styles/switch-theme.css b/qortal-ui-core/src/styles/switch-theme.css index 9c6c517e..9e1a0a49 100644 --- a/qortal-ui-core/src/styles/switch-theme.css +++ b/qortal-ui-core/src/styles/switch-theme.css @@ -8,6 +8,8 @@ html { --border2: #dde2e8; --copybutton: #707584; --chat-bubble: #efefef73; + --chat-bubble-bg: #f3f3f3; + --chat-bubble-msg-color: #080808; --sectxt: #576374; --vdicon: #707b8a; --tradehead: #6a6c75; @@ -44,6 +46,8 @@ html[theme="dark"] { --border2: #0b305e; --copybutton: #d0d6de; --chat-bubble: #9694941a; + --chat-bubble-bg: #2d3749; + --chat-bubble-msg-color: #ffffff; --sectxt: #bbc3cd; --vdicon: #d0d6de; --tradehead: #008fd5; diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index a01ef691..32873534 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -129,6 +129,7 @@ class ChatPage extends LitElement { display: flex; flex-direction: row; align-items: center; + justify-content: center; gap: 15px; width: 100%; } @@ -137,7 +138,7 @@ class ChatPage extends LitElement { display: flex; flex-direction: column; gap: 5px; - width: 95%; + width: 92%; } @@ -638,13 +639,13 @@ class ChatPage extends LitElement {
${this.repliedToMessageObj.senderName ? this.repliedToMessageObj.senderName : this.repliedToMessageObj.sender}
+${translate("chatpage.cchange25")}
+