From c4806c6fb5121321868cb6265e37267b3c062cea Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 27 Jun 2022 21:47:15 -0400 Subject: [PATCH] navigationpanel: Cap width of buttons at 80% of panel --- .../mobileshell/qml/navigationpanel/NavigationPanel.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobileshell/qml/navigationpanel/NavigationPanel.qml b/components/mobileshell/qml/navigationpanel/NavigationPanel.qml index 55032c1d..dd80695e 100644 --- a/components/mobileshell/qml/navigationpanel/NavigationPanel.qml +++ b/components/mobileshell/qml/navigationpanel/NavigationPanel.qml @@ -173,7 +173,7 @@ Item { when: root.width < root.height PropertyChanges { target: icons - buttonLength: Math.min(PlasmaCore.Units.gridUnit * 10, icons.height * 0.9 / 3) + buttonLength: Math.min(PlasmaCore.Units.gridUnit * 10, icons.height * 0.8 / 3) } AnchorChanges { target: leftButton @@ -209,7 +209,7 @@ Item { when: root.width >= root.height PropertyChanges { target: icons - buttonLength: Math.min(PlasmaCore.Units.gridUnit * 8, icons.width * 0.9 / 3) + buttonLength: Math.min(PlasmaCore.Units.gridUnit * 8, icons.width * 0.8 / 3) } AnchorChanges { target: leftButton