From ebe6fffb034b036769c24c10e5409034114cd542 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Mon, 19 Oct 2020 11:43:25 -0400 Subject: [PATCH] [notifications] HACK fix width --- .../package/contents/ui/global/Globals.qml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/applets/notifications/package/contents/ui/global/Globals.qml b/applets/notifications/package/contents/ui/global/Globals.qml index 8951ed55e..e622e78ca 100644 --- a/applets/notifications/package/contents/ui/global/Globals.qml +++ b/applets/notifications/package/contents/ui/global/Globals.qml @@ -176,14 +176,9 @@ QtObject { onFocusDialogChanged: positionPopups() // The raw width of the popup's content item, the Dialog itself adds some margins - // Make it wider when on the top or the bottom center, since there's more horizontal - // space available without looking weird - // On mobile however we don't really want to have larger notifications - property int popupWidth: (popupLocation & Qt.AlignHCenter) && !Kirigami.Settings.isMobile ? units.gridUnit * 22 : units.gridUnit * 18 - property int popupEdgeDistance: units.largeSpacing * 2 - // Reduce spacing between popups when centered so the stack doesn't intrude into the - // view as much - property int popupSpacing: (popupLocation & Qt.AlignHCenter) && !Kirigami.Settings.isMobile ? units.smallSpacing : units.largeSpacing + property int popupWidth: 818 + property int popupEdgeDistance: units.largeSpacing + property int popupSpacing: units.largeSpacing // How much vertical screen real estate the notification popups may consume readonly property real popupMaximumScreenFill: 0.8