Commit 00fbb83e authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

[notifications] don't widen the notifications on the mobile

Otherwise they would go out of screen bounds.
parent 4e706dc6
......@@ -141,11 +141,12 @@ QtObject {
// 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
property int popupWidth: popupLocation & Qt.AlignHCenter ? units.gridUnit * 28 : units.gridUnit * 18
// On mobile however we don't really want to have larger notifications
property int popupWidth: (popupLocation & Qt.AlignHCenter) && !Kirigami.Settings.isMobile ? units.gridUnit * 28 : 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 ? units.smallSpacing : units.largeSpacing
property int popupSpacing: (popupLocation & Qt.AlignHCenter) && !Kirigami.Settings.isMobile ? units.smallSpacing : units.largeSpacing
// How much vertical screen real estate the notification popups may consume
readonly property real popupMaximumScreenFill: 0.75
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment