mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Improve timestamp layouting in room list
This commit is contained in:
parent
5aee8d609a
commit
9ce1e205e6
1 changed files with 13 additions and 13 deletions
|
@ -539,13 +539,12 @@ Page {
|
||||||
id: textContent
|
id: textContent
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.minimumWidth: 100
|
Layout.minimumWidth: 100
|
||||||
Layout.preferredWidth: parent.width - avatar.width
|
Layout.preferredWidth: parent.width - avatar.width
|
||||||
height: avatar.height
|
height: avatar.height
|
||||||
spacing: Nheko.paddingSmall
|
spacing: Nheko.paddingSmall
|
||||||
visible: !collapsed
|
visible: !collapsed
|
||||||
width: parent.width - avatar.width
|
width: roomItem.width - avatar.width
|
||||||
|
|
||||||
NotificationBubble {
|
NotificationBubble {
|
||||||
id: notificationBubble
|
id: notificationBubble
|
||||||
|
@ -565,28 +564,29 @@ Page {
|
||||||
id: titleRow
|
id: titleRow
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.fillWidth: true
|
Layout.preferredWidth: roomItem.width - avatar.width
|
||||||
spacing: Nheko.paddingSmall
|
spacing: Nheko.paddingSmall
|
||||||
|
|
||||||
ElidedLabel {
|
Item {
|
||||||
id: rN
|
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignBaseline
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: roomItem.importantText
|
Layout.alignment: Qt.AlignBottom
|
||||||
elideWidth: width
|
|
||||||
fullText: TimelineManager.htmlEscape(roomName)
|
ElidedLabel {
|
||||||
textFormat: Text.RichText
|
anchors.bottom: parent.bottom
|
||||||
|
color: roomItem.importantText
|
||||||
|
elideWidth: parent.width
|
||||||
|
fullText: TimelineManager.htmlEscape(roomName)
|
||||||
|
textFormat: Text.RichText
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: timestamp
|
id: timestamp
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignBaseline
|
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
|
||||||
color: roomItem.unimportantText
|
color: roomItem.unimportantText
|
||||||
font.pixelSize: fontMetrics.font.pixelSize * 0.9
|
font.pixelSize: fontMetrics.font.pixelSize * 0.9
|
||||||
text: time
|
text: time
|
||||||
visible: !isInvite && !isSpace
|
visible: !isInvite && !isSpace
|
||||||
width: visible ? 0 : undefined
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
Loading…
Reference in a new issue