From 49aceefae39f9c96dedd510f090ccb420fcf2218 Mon Sep 17 00:00:00 2001 From: Malte E <97891689+maltee1@users.noreply.github.com> Date: Fri, 25 Feb 2022 22:57:13 +0100 Subject: [PATCH] Fix roomlist timestamp being off-screen (#966) * fix timestamp disappearing off-screen * remove mobileMode dependency of ScrollHelper --- resources/qml/RoomList.qml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 1e7f0c36..f263c59b 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -38,7 +38,6 @@ Page { ScrollHelper { flickable: parent anchors.fill: parent - enabled: !Settings.mobileMode } Connections { @@ -273,7 +272,7 @@ Page { Layout.minimumWidth: 100 width: parent.width - avatar.width Layout.preferredWidth: parent.width - avatar.width - spacing: Nheko.paddingSmall + spacing: Nheko.paddingMedium RowLayout { Layout.fillWidth: true @@ -282,12 +281,9 @@ Page { ElidedLabel { Layout.alignment: Qt.AlignBottom color: roomItem.importantText - elideWidth: textContent.width - timestamp.width - Nheko.paddingMedium + elideWidth: width fullText: roomName textFormat: Text.RichText - } - - Item { Layout.fillWidth: true } @@ -313,12 +309,9 @@ Page { ElidedLabel { color: roomItem.unimportantText font.pixelSize: fontMetrics.font.pixelSize * 0.9 - elideWidth: textContent.width - (notificationBubble.visible ? notificationBubble.width : 0) - Nheko.paddingSmall + elideWidth: width fullText: lastMessage textFormat: Text.RichText - } - - Item { Layout.fillWidth: true }