diff --git a/bar/modules/Notifications.qml b/bar/modules/Notifications.qml index 8dbbc94..0494ec5 100644 --- a/bar/modules/Notifications.qml +++ b/bar/modules/Notifications.qml @@ -186,7 +186,7 @@ Rectangle { readonly property bool atBottom: pos === "bottomleft" || pos === "bottomright" anchors { top: true; bottom: true; right: atRight; left: !atRight } - implicitWidth: 350 + root.barMargin + 4 + implicitWidth: 350 + root.barMargin + toastPad WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.namespace: "main-shell-notifications-toasts" @@ -197,10 +197,12 @@ Rectangle { readonly property bool shareEdge: (root.isTop && !atBottom) || (!root.isTop && atBottom) readonly property int edgeGap: shareEdge ? root.barMargin + root.barHeight + 10 : root.barMargin + 10 + // Extra clearance so cards don't overlap the frame border stroke + readonly property int toastPad: root.barMargin + Cfg.Config.frameBorderWidth + Cfg.Config.notifToastEdgePad Column { id: toastCol - x: !toastLayer.atRight ? 4 : 4 + x: toastLayer.atRight ? root.barMargin : toastLayer.toastPad y: !toastLayer.atBottom ? toastLayer.edgeGap : parent.height - toastLayer.edgeGap - toastCol.height spacing: 8 width: 350 diff --git a/config/config.qml b/config/config.qml index ee9ce99..6378443 100644 --- a/config/config.qml +++ b/config/config.qml @@ -78,6 +78,7 @@ QtObject { property int notifTimeoutCritical: 0 property int notifIconSize: 18 + property int notifToastEdgePad: 10 // extra gap between toast cards and the frame border // ──────────────────────────────────────────────────────────────────────── // LAUNCHER