From 361c902f379ac974368d1fd8aa0e497922f3183b Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Tue, 21 Sep 2021 13:25:50 +1000 Subject: [PATCH] =?UTF-8?q?fix(chat):=20Re-position=20=E2=80=9Cretry?= =?UTF-8?q?=E2=80=9D=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #3606. The “retry” link for failed messages was not aligned correctly in the light theme. This was due to setting the `verticalCenter` as well as `anchors.top` in some situations. `verticalCenter` has been removed in favour of setting the top and bottom anchors. --- .../Chat/ChatColumn/MessageComponents/CompactMessage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml index aea2b4ced1..e227ac8f16 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/CompactMessage.qml @@ -470,9 +470,9 @@ Item { id: retry anchors.left: chatTime.visible ? chatTime.right : messageContent.left anchors.leftMargin: chatTime.visible ? chatHorizontalPadding : 0 - anchors.top: chatTime.visible ? undefined : messageContent.bottom + anchors.top: chatTime.visible ? chatTime.top : messageContent.bottom anchors.topMargin: chatTime.visible ? 0 : -4 - anchors.verticalCenter: chatTime.visible ? chatTime.verticalCenter : undefined + anchors.bottom: chatTime.visible ? chatTime.bottom : undefined } }