diff --git a/applets/notifications/package/contents/ui/NotificationItem.qml b/applets/notifications/package/contents/ui/NotificationItem.qml --- a/applets/notifications/package/contents/ui/NotificationItem.qml +++ b/applets/notifications/package/contents/ui/NotificationItem.qml @@ -210,8 +210,19 @@ Layout.preferredWidth: units.iconSizes.large Layout.preferredHeight: units.iconSizes.large + Layout.rightMargin: LayoutMirroring.enabled ? 0 : sizingButton.width + Layout.leftMargin: LayoutMirroring.enabled ? sizingButton.width : 0 + visible: iconItem.active || imageItem.active + // This only exists so we can get its size to determine how far to move + // the icon over to the left + PlasmaComponents.ToolButton { + id: sizingButton + iconSource: "window-close" + visible: false + } + PlasmaCore.IconItem { id: iconItem // don't show two identical icons