From 1908f160eebd5903735a3b4672fc081a6b898313 Mon Sep 17 00:00:00 2001 From: Justin Ferrari <‘justinwesleyferrari@gmail.com’> Date: Thu, 17 Nov 2022 21:33:50 -0500 Subject: [PATCH] Fixed some UI bugs --- .../plugins/core/components/ChatPage.js | 12 ++++++++++- .../core/components/ChatScroller-css.js | 21 ++++++++++++------- .../plugins/core/components/ChatScroller.js | 10 +++++++-- 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 59069f75..c8ebf65c 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -432,6 +432,16 @@ class ChatPage extends LitElement { /* Add Image Modal Dialog Styling */ .dialog-container { + position: relative; + display: flex; + align-items: center; + flex-direction: column; + padding: 0 10px; + gap: 10px; + height: 100%; + } + + .dialog-container-loader { position: relative; display: flex; align-items: center; @@ -628,7 +638,7 @@ class ChatPage extends LitElement { ${(this.isUploadingImage || this.isDeletingImage) ? html`
${this.isDeletingImage ? diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller-css.js b/qortal-ui-plugins/plugins/core/components/ChatScroller-css.js index 0ef263ef..753c5230 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller-css.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller-css.js @@ -400,26 +400,33 @@ export const chatStyles = css` .image-container { display: flex; } + .message-data-level { height: 21px; width: 21px; overflow: hidden; } + .defaultSize { - width:45vh; - height:40vh + width: 45vh; + height: 40vh; } + .image-delete-icon { margin-left: 5px; height: 20px; - cursor: pointer; - visibility: hidden; - transition: .2s all; - opacity: .8 + cursor: pointer; + visibility: hidden; + transition: .2s all; + opacity: 0.8; + color: rgb(228, 222, 222); + padding-left: 7px; } + .image-delete-icon:hover { - opacity: 1 + opacity: 1; } + .message-parent:hover .image-delete-icon { visibility: visible; } diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index d23d62da..448ce883 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -414,7 +414,10 @@ class MessageTemplate extends LitElement {