summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-09-28 10:24:36 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-09-28 10:24:36 +0200
commit41a1b36081e32ce9ff0dc28658851b3ee0de928c (patch)
tree772daa65b83fe5da4c34409fee2e6d632344631a /components
parent123155d8f3ebb59670b14f51b2367fb463a77cb3 (diff)
downloadkube-41a1b36081e32ce9ff0dc28658851b3ee0de928c.tar.gz
kube-41a1b36081e32ce9ff0dc28658851b3ee0de928c.zip
revert layout changes on width until we have a propper solution
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/Kube.qml1
-rw-r--r--components/kube/contents/ui/MailView.qml7
2 files changed, 2 insertions, 6 deletions
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 {
28 id: app 28 id: app
29 29
30 property int sidebarWidth: Kube.Units.gridUnit + Kube.Units.largeSpacing 30 property int sidebarWidth: Kube.Units.gridUnit + Kube.Units.largeSpacing
31 property bool small: app.width < Kube.Units.gridUnit * 50
32 31
33 height: Screen.desktopAvailableHeight * 0.8 32 height: Screen.desktopAvailableHeight * 0.8
34 width: Screen.desktopAvailableWidth * 0.8 33 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
26import org.kube.framework 1.0 as Kube 26import org.kube.framework 1.0 as Kube
27 27
28FocusScope { 28FocusScope {
29 RowLayout { 29 SplitView {
30 anchors.fill: parent 30 anchors.fill: parent
31 spacing: 1
32 Rectangle { 31 Rectangle {
33 width: Kube.Units.gridUnit * 10 32 width: Kube.Units.gridUnit * 10
34 Layout.fillHeight: parent.height 33 Layout.fillHeight: parent.height
35 visible: !app.small
36
37 color: Kube.Colors.textColor 34 color: Kube.Colors.textColor
38 35
39 Kube.PositiveButton { 36 Kube.PositiveButton {
@@ -98,7 +95,7 @@ FocusScope {
98 } 95 }
99 96
100 Rectangle { 97 Rectangle {
101 Layout.preferredWidth: app.small ? Kube.Units.gridUnit * 12 : Kube.Units.gridUnit * 20 98 width: Kube.Units.gridUnit * 18
102 Layout.fillHeight: parent.height 99 Layout.fillHeight: parent.height
103 100
104 color: "transparent" 101 color: "transparent"