Fix a few alignment issues in the roomlist

This commit is contained in:
Nicolas Werner 2022-03-09 18:36:01 +01:00
parent 23f049e5c0
commit 5b09dd1a11
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -278,10 +278,11 @@ Page {
RowLayout { RowLayout {
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
Layout.fillWidth: true Layout.fillWidth: true
spacing: 0 spacing: Nheko.paddingSmall
ElidedLabel { ElidedLabel {
Layout.alignment: Qt.AlignBottom id: rN
Layout.alignment: Qt.AlignBaseline
color: roomItem.importantText color: roomItem.importantText
elideWidth: width elideWidth: width
fullText: roomName fullText: roomName
@ -294,7 +295,7 @@ Page {
visible: !isInvite && !isSpace visible: !isInvite && !isSpace
width: visible ? 0 : undefined width: visible ? 0 : undefined
Layout.alignment: Qt.AlignRight | Qt.AlignBottom Layout.alignment: Qt.AlignRight | Qt.AlignBaseline
font.pixelSize: fontMetrics.font.pixelSize * 0.9 font.pixelSize: fontMetrics.font.pixelSize * 0.9
color: roomItem.unimportantText color: roomItem.unimportantText
text: time text: time