applers/notifications: Fix margins for non-critical notifications

This fixes a small regression introduced in
be7efa5ec2
wilder-5.24
Nate Graham 4 years ago
parent 2772dec4ad
commit 93355636de
  1. 12
      applets/notifications/package/contents/ui/NotificationItem.qml

@ -149,9 +149,9 @@ ColumnLayout {
// When the urgent notification line is visible, remove margins to allow
// it to touch the edges of the popup
Layout.topMargin: urgentNotificationLine.visible? notificationItem.thumbnailTopPadding + PlasmaCore.Units.devicePixelRatio : -1
Layout.leftMargin: urgentNotificationLine.visible? notificationItem.thumbnailLeftPadding : -1
Layout.bottomMargin: urgentNotificationLine.visible? notificationItem.thumbnailBottomPadding : -1
Layout.topMargin: urgentNotificationLine.visible ? notificationItem.thumbnailTopPadding + PlasmaCore.Units.devicePixelRatio : undefined
Layout.leftMargin: urgentNotificationLine.visible ? notificationItem.thumbnailLeftPadding : undefined
Layout.bottomMargin: urgentNotificationLine.visible ? notificationItem.thumbnailBottomPadding : undefined
spacing: PlasmaCore.Units.smallSpacing
@ -172,9 +172,9 @@ ColumnLayout {
// Re-add margins to this item if they were removed in the parent item
// to let the urgent notification line touch the edges; we do want
// everything else to have normal margins
Layout.topMargin: urgentNotificationLine.visible? -notificationItem.thumbnailTopPadding : -1
Layout.leftMargin: urgentNotificationLine.visible? -notificationItem.thumbnailLeftPadding : -1
Layout.bottomMargin: urgentNotificationLine.visible? -notificationItem.thumbnailBottomPadding : -1
Layout.topMargin: urgentNotificationLine.visible ? -notificationItem.thumbnailTopPadding : undefined
Layout.leftMargin: urgentNotificationLine.visible ? -notificationItem.thumbnailLeftPadding : undefined
Layout.bottomMargin: urgentNotificationLine.visible ? -notificationItem.thumbnailBottomPadding : undefined
spacing: PlasmaCore.Units.smallSpacing

Loading…
Cancel
Save