From 6459ab8c956b4cc891657a1a54ebe5fea8df4c93 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 14 Jun 2021 23:07:20 +0200 Subject: [PATCH] Change collapse position --- resources/qml/ChatPage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/ChatPage.qml b/resources/qml/ChatPage.qml index 7a428019..df2bf41f 100644 --- a/resources/qml/ChatPage.qml +++ b/resources/qml/ChatPage.qml @@ -17,7 +17,7 @@ Rectangle { id: adaptiveView anchors.fill: parent - singlePageMode: width < communityListC.maximumWidth + roomListC.maximumWidth + timlineViewC.minimumWidth + singlePageMode: communityListC.preferredWidth + roomListC.preferredWidth + timlineViewC.minimumWidth > width pageIndex: Rooms.currentRoom ? 2 : 1 AdaptiveLayoutElement { @@ -71,7 +71,7 @@ Rectangle { AdaptiveLayoutElement { id: timlineViewC - minimumWidth: 400 + minimumWidth: fontMetrics.averageCharacterWidth * 40 + Nheko.avatarSize + 2* Nheko.paddingMedium TimelineView { id: timeline