mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Fix roomlist timestamp being off-screen (#966)
* fix timestamp disappearing off-screen * remove mobileMode dependency of ScrollHelper
This commit is contained in:
parent
64773898e7
commit
49aceefae3
1 changed files with 3 additions and 10 deletions
|
@ -38,7 +38,6 @@ Page {
|
||||||
ScrollHelper {
|
ScrollHelper {
|
||||||
flickable: parent
|
flickable: parent
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
enabled: !Settings.mobileMode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
@ -273,7 +272,7 @@ Page {
|
||||||
Layout.minimumWidth: 100
|
Layout.minimumWidth: 100
|
||||||
width: parent.width - avatar.width
|
width: parent.width - avatar.width
|
||||||
Layout.preferredWidth: parent.width - avatar.width
|
Layout.preferredWidth: parent.width - avatar.width
|
||||||
spacing: Nheko.paddingSmall
|
spacing: Nheko.paddingMedium
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -282,12 +281,9 @@ Page {
|
||||||
ElidedLabel {
|
ElidedLabel {
|
||||||
Layout.alignment: Qt.AlignBottom
|
Layout.alignment: Qt.AlignBottom
|
||||||
color: roomItem.importantText
|
color: roomItem.importantText
|
||||||
elideWidth: textContent.width - timestamp.width - Nheko.paddingMedium
|
elideWidth: width
|
||||||
fullText: roomName
|
fullText: roomName
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,12 +309,9 @@ Page {
|
||||||
ElidedLabel {
|
ElidedLabel {
|
||||||
color: roomItem.unimportantText
|
color: roomItem.unimportantText
|
||||||
font.pixelSize: fontMetrics.font.pixelSize * 0.9
|
font.pixelSize: fontMetrics.font.pixelSize * 0.9
|
||||||
elideWidth: textContent.width - (notificationBubble.visible ? notificationBubble.width : 0) - Nheko.paddingSmall
|
elideWidth: width
|
||||||
fullText: lastMessage
|
fullText: lastMessage
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue