fix(chat): Re-position “retry” link

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.
This commit is contained in:
Eric Mastro 2021-09-21 13:25:50 +10:00 committed by Iuri Matias
parent 98bebb8c51
commit 361c902f37
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}