Improve visual on Mobile

This commit is contained in:
Carl Schwan
2020-12-02 22:52:13 +01:00
parent 633d2da4e6
commit fcede82fec

View File

@@ -29,14 +29,16 @@ Kirigami.ScrollablePage {
signal switchRoomUp() signal switchRoomUp()
signal switchRoomDown() signal switchRoomDown()
title: currentRoom.name
titleDelegate: Component { titleDelegate: Component {
RowLayout { RowLayout {
visible: !Kirigami.Settings.isMobile
Layout.fillWidth: true Layout.fillWidth: true
Layout.maximumWidth: implicitWidth + 1 // The +1 is to make sure we do not trigger eliding at max width Layout.maximumWidth: implicitWidth + 1 // The +1 is to make sure we do not trigger eliding at max width
Layout.minimumWidth: 0 Layout.minimumWidth: 0
Kirigami.Heading { Kirigami.Heading {
level: 1 level: 1
text: currentRoom.name text: page.title
opacity: page.isCurrentPage ? 1 : 0.4 opacity: page.isCurrentPage ? 1 : 0.4
maximumLineCount: 1 maximumLineCount: 1
elide: Text.ElideRight elide: Text.ElideRight