From fcede82fec0228cb8515c0c388bfe5de033cf2f4 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 2 Dec 2020 22:52:13 +0100 Subject: [PATCH] Improve visual on Mobile --- imports/NeoChat/Page/RoomPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 3deb9e908..24ca7c3ba 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -29,14 +29,16 @@ Kirigami.ScrollablePage { signal switchRoomUp() signal switchRoomDown() + title: currentRoom.name titleDelegate: Component { RowLayout { + visible: !Kirigami.Settings.isMobile Layout.fillWidth: true Layout.maximumWidth: implicitWidth + 1 // The +1 is to make sure we do not trigger eliding at max width Layout.minimumWidth: 0 Kirigami.Heading { level: 1 - text: currentRoom.name + text: page.title opacity: page.isCurrentPage ? 1 : 0.4 maximumLineCount: 1 elide: Text.ElideRight