From 02119d51d28940b062de0c3e1fc6943bf9b42f3d Mon Sep 17 00:00:00 2001 From: Justin Ferrari <‘justinwesleyferrari@gmail.com’> Date: Sat, 29 Oct 2022 22:11:40 -0500 Subject: [PATCH] Continued UI Edit Message --- .../plugins/core/components/ChatPage.js | 50 ++++++++++++------- .../core/components/ChatScroller-css.js | 2 +- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 63a0dad5..8dc7083f 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -53,7 +53,8 @@ class ChatPage extends LitElement { messagesRendered: { type: Array }, repliedToMessageObj: { type: Object }, editedMessageObj: { type: Object }, - chatMessageSize: { type: String} + chatMessageSize: { type: String }, + iframeHeight: { type: Number } } } @@ -63,6 +64,12 @@ class ChatPage extends LitElement { scroll-behavior: smooth; } + .chat-container { + display: grid; + grid-template-rows: minmax(66%, 92vh) minmax(40px, auto); + max-height: 100%; + } + .chat-text-area { display: flex; justify-content: center; @@ -72,8 +79,6 @@ class ChatPage extends LitElement { .chat-text-area .typing-area { display: flex; flex-direction: column; - position: absolute; - bottom: 0; width: 98%; box-sizing: border-box; margin-bottom: 8px; @@ -90,8 +95,6 @@ class ChatPage extends LitElement { .chat-text-area .typing-area .chat-editor { border-color: transparent; flex: 1; - max-height: 40px; - height: 40px; margin: 0; padding: 0; border: none; @@ -210,11 +213,12 @@ class ChatPage extends LitElement { this.messagesRendered = [] this.repliedToMessageObj = null this.editedMessageObj = null + this.iframeHeight = 40; } render() { return html` -