From 6dab5d612b226b6fd8d56e6172f5de30aa4c45a2 Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Fri, 11 Nov 2022 17:26:25 +0200 Subject: [PATCH] fix dynamic iframe height --- .../plugins/core/components/ChatPage.js | 59 +++++++++++++------ .../plugins/core/components/ChatScroller.js | 7 ++- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index a01ef691..fdfed413 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -61,7 +61,8 @@ class ChatPage extends LitElement { chatMessageSize: { type: Number}, imageFile: {type: Object}, isUploadingImage: {type: Boolean}, - caption: { type: String } + caption: { type: String }, + chatEditor: {type: Object} } } @@ -532,7 +533,7 @@ class ChatPage extends LitElement { this.messagesRendered = [] this.repliedToMessageObj = null this.editedMessageObj = null - this.iframeHeight = 40 + this.iframeHeight = 42 this.chatMessageSize = 0 this.imageFile = null this.uid = new ShortUniqueId() @@ -628,7 +629,7 @@ class ChatPage extends LitElement { -
+
${this.repliedToMessageObj && html`
@@ -683,7 +684,8 @@ class ChatPage extends LitElement {
-