fix(CompactMessage): fix message height and spacing

Fixes #6169
This commit is contained in:
Jonathan Rainville 2022-06-21 13:42:11 -04:00 committed by Iuri Matias
parent 2449c8840e
commit 8c1024354e
1 changed files with 3 additions and 1 deletions

View File

@ -215,6 +215,7 @@ Item {
+ (retry.visible && !chatTime.visible ? Style.current.smallPadding : 0) + (retry.visible && !chatTime.visible ? Style.current.smallPadding : 0)
+ (pinnedRectangleLoader.active ? Style.current.smallPadding : 0) + (pinnedRectangleLoader.active ? Style.current.smallPadding : 0)
+ (editModeOn ? 25 : 0) + (editModeOn ? 25 : 0)
+ (!chatName.visible ? 6 : 0)
width: parent.width width: parent.width
color: { color: {
@ -509,7 +510,7 @@ Item {
anchors.leftMargin: chatImage.imageWidth + Style.current.padding + root.chatHorizontalPadding anchors.leftMargin: chatImage.imageWidth + Style.current.padding + root.chatHorizontalPadding
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: root.chatHorizontalPadding 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 visible: !editModeOn
ChatTextView { ChatTextView {
id: chatText id: chatText
@ -681,6 +682,7 @@ Item {
Retry { Retry {
id: retry id: retry
height: visible ? implicitHeight : 0
anchors.left: chatTime.visible ? chatTime.right : messageContent.left anchors.left: chatTime.visible ? chatTime.right : messageContent.left
anchors.leftMargin: chatTime.visible ? chatHorizontalPadding : 0 anchors.leftMargin: chatTime.visible ? chatHorizontalPadding : 0
anchors.top: chatTime.visible ? chatTime.top : messageContent.bottom anchors.top: chatTime.visible ? chatTime.top : messageContent.bottom