From 8c1024354e11c0a2934e3b7d67df3345390e9cf8 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 21 Jun 2022 13:42:11 -0400 Subject: [PATCH] fix(CompactMessage): fix message height and spacing Fixes #6169 --- ui/imports/shared/views/chat/CompactMessageView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/imports/shared/views/chat/CompactMessageView.qml b/ui/imports/shared/views/chat/CompactMessageView.qml index 16b4266961..a62d157eb5 100644 --- a/ui/imports/shared/views/chat/CompactMessageView.qml +++ b/ui/imports/shared/views/chat/CompactMessageView.qml @@ -215,6 +215,7 @@ Item { + (retry.visible && !chatTime.visible ? Style.current.smallPadding : 0) + (pinnedRectangleLoader.active ? Style.current.smallPadding : 0) + (editModeOn ? 25 : 0) + + (!chatName.visible ? 6 : 0) width: parent.width color: { @@ -509,7 +510,7 @@ Item { anchors.leftMargin: chatImage.imageWidth + Style.current.padding + root.chatHorizontalPadding anchors.right: parent.right anchors.rightMargin: root.chatHorizontalPadding - anchors.topMargin: (!chatName.visible || !chatReply.active || !pinnedRectangleLoader.active) ? Style.current.halfPadding : 0 + anchors.topMargin: (!chatName.visible || !chatReply.active || !pinnedRectangleLoader.active) ? 4 : 0 visible: !editModeOn ChatTextView { id: chatText @@ -681,6 +682,7 @@ Item { Retry { id: retry + height: visible ? implicitHeight : 0 anchors.left: chatTime.visible ? chatTime.right : messageContent.left anchors.leftMargin: chatTime.visible ? chatHorizontalPadding : 0 anchors.top: chatTime.visible ? chatTime.top : messageContent.bottom