Fix margins and sizes to align both avatar + user status displays.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2021-04-27 13:09:51 +02:00 committed by Camila (Rebase PR Action)
parent dc01b76066
commit 4326eb53ba

View file

@ -64,12 +64,12 @@ MenuItem {
spacing: 0
Image {
id: accountAvatar
Layout.leftMargin: 4
Layout.leftMargin: 7
verticalAlignment: Qt.AlignCenter
cache: false
source: model.avatar != "" ? model.avatar : "image://avatars/fallbackBlack"
Layout.preferredHeight: (userLineLayout.height -16)
Layout.preferredWidth: (userLineLayout.height -16)
Layout.preferredHeight: Style.accountAvatarSize
Layout.preferredWidth: Style.accountAvatarSize
Rectangle {
id: accountStatusIndicatorBackground
visible: model.isConnected &&
@ -101,7 +101,7 @@ MenuItem {
id: accountLabels
spacing: 4
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: 6
Layout.leftMargin: 9
Label {
id: accountUser
width: 128