diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 90c922f4..8c0d6849 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -60,14 +60,14 @@ class ChatPage extends LitElement { repliedToMessageObj: { type: Object }, editedMessageObj: { type: Object }, iframeHeight: { type: Number }, - // chatMessageSize: { type: Number}, imageFile: { type: Object }, isUploadingImage: { type: Boolean }, chatEditor: { type: Object }, chatEditorNewChat: { type: Object }, userLanguage: { type: String }, lastMessageRefVisible: { type: Boolean }, - isLoadingOldMessages: {type: Boolean} + isLoadingOldMessages: {type: Boolean}, + isEditMessageOpen: { type: Boolean } } } @@ -121,14 +121,13 @@ class ChatPage extends LitElement { flex-direction: row; justify-content: space-between; align-items: center; - padding: 10px 20px 8px 10px; + padding: 10px 10px 8px 10px; } .repliedTo-subcontainer { display: flex; flex-direction: row; align-items: center; - justify-content: center; gap: 15px; width: 100%; } @@ -137,7 +136,7 @@ class ChatPage extends LitElement { display: flex; flex-direction: column; gap: 5px; - width: 92%; + width: 100%; } .senderName { @@ -153,6 +152,7 @@ class ChatPage extends LitElement { overflow: hidden; white-space: nowrap; margin: 0; + width: 800px; } .reply-icon { @@ -160,15 +160,6 @@ class ChatPage extends LitElement { color: var(--mdc-theme-primary); } - .checkmark-icon { - width: 30px; - color: var(--mdc-theme-primary); - margin: 0 8px; - } - .checkmark-icon:hover { - cursor: pointer; - } - .close-icon { color: #676b71; width: 18px; @@ -523,9 +514,7 @@ class ChatPage extends LitElement { this.getOldMessage = this.getOldMessage.bind(this) this._sendMessage = this._sendMessage.bind(this) this.insertImage = this.insertImage.bind(this) - // this.getMessageSize = this.getMessageSize.bind(this) this._downObserverhandler = this._downObserverhandler.bind(this) - // this.calculateIFrameHeight = this.calculateIFrameHeight.bind(this) this.selectedAddress = {} this.chatId = '' this.myAddress = '' @@ -547,11 +536,11 @@ class ChatPage extends LitElement { this.repliedToMessageObj = null this.editedMessageObj = null this.iframeHeight = 42 - // this.chatMessageSize = 0 this.imageFile = null this.uid = new ShortUniqueId() this.userLanguage = "" this.lastMessageRefVisible = false + this.isEditMessageOpen = false this.emojiPicker = new EmojiPicker({ style: "twemoji", twemojiBaseUrl: '/emoji/', @@ -645,7 +634,7 @@ class ChatPage extends LitElement { .mirrorChatInput=${this.mirrorChatInput} ?isLoading=${this.isLoading} ?isLoadingMessages=${this.isLoadingMessages} - > + ?isEditMessageOpen=${this.isEditMessageOpen}> @@ -666,7 +655,7 @@ class ChatPage extends LitElement { `: ''} this.removeImage()} - style=${this.imageFile ? "display: block" : "display: none"}> + style=${(this.imageFile && !this.isUploadingImage) ? "display: block" : "display: none"}>
${this.imageFile && html` @@ -688,13 +677,7 @@ class ChatPage extends LitElement {