From 41a1b36081e32ce9ff0dc28658851b3ee0de928c Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 28 Sep 2017 10:24:36 +0200 Subject: revert layout changes on width until we have a propper solution --- components/kube/contents/ui/Kube.qml | 1 - components/kube/contents/ui/MailView.qml | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 0a92b783..846e5ff2 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -28,7 +28,6 @@ Controls2.ApplicationWindow { id: app property int sidebarWidth: Kube.Units.gridUnit + Kube.Units.largeSpacing - property bool small: app.width < Kube.Units.gridUnit * 50 height: Screen.desktopAvailableHeight * 0.8 width: Screen.desktopAvailableWidth * 0.8 diff --git a/components/kube/contents/ui/MailView.qml b/components/kube/contents/ui/MailView.qml index 0c955fc6..8b2b0caf 100644 --- a/components/kube/contents/ui/MailView.qml +++ b/components/kube/contents/ui/MailView.qml @@ -26,14 +26,11 @@ import QtQuick.Layouts 1.1 import org.kube.framework 1.0 as Kube FocusScope { - RowLayout { + SplitView { anchors.fill: parent - spacing: 1 Rectangle { width: Kube.Units.gridUnit * 10 Layout.fillHeight: parent.height - visible: !app.small - color: Kube.Colors.textColor Kube.PositiveButton { @@ -98,7 +95,7 @@ FocusScope { } Rectangle { - Layout.preferredWidth: app.small ? Kube.Units.gridUnit * 12 : Kube.Units.gridUnit * 20 + width: Kube.Units.gridUnit * 18 Layout.fillHeight: parent.height color: "transparent" -- cgit v1.2.3