diff --git a/applets/notifications/package/contents/ui/global/Globals.qml b/applets/notifications/package/contents/ui/global/Globals.qml --- a/applets/notifications/package/contents/ui/global/Globals.qml +++ b/applets/notifications/package/contents/ui/global/Globals.qml @@ -139,9 +139,13 @@ onFocusDialogChanged: positionPopups() // The raw width of the popup's content item, the Dialog itself adds some margins - property int popupWidth: units.gridUnit * 18 + // Make it wider when on the top or the bottom center, since there's more horizontal + // space available without looking weird + property int popupWidth: popupLocation & Qt.AlignHCenter ? units.gridUnit * 28 : units.gridUnit * 18 property int popupEdgeDistance: units.largeSpacing * 2 - property int popupSpacing: units.largeSpacing + // Reduce spacing between popups when centered so the stack doesn't intrude into the + // view as much + property int popupSpacing: popupLocation & Qt.AlignHCenter ? units.smallSpacing : units.largeSpacing // How much vertical screen real estate the notification popups may consume readonly property real popupMaximumScreenFill: 0.75