From 440f70a5c90cdf9eef9d6fd864491beda226f374 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 21:48:07 +0100 Subject: [PATCH] NotificationHistoryPanel: fix misaligned icon --- .../NotificationHistoryPanel.qml | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml b/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml index 04df5cb4..dd1c87a8 100644 --- a/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml +++ b/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml @@ -200,22 +200,16 @@ SmartPanel { width: parent.width spacing: Style.marginM - // Icon column - use simple Item instead of ColumnLayout to avoid polish loop - Item { + // Icon - properly centered vertically + NImageCircled { Layout.preferredWidth: Math.round(40 * Style.uiScaleRatio) - Layout.alignment: Qt.AlignTop - - NImageCircled { - anchors.top: parent.top - anchors.topMargin: 20 - width: Math.round(40 * Style.uiScaleRatio) - height: Math.round(40 * Style.uiScaleRatio) - imagePath: model.cachedImage || model.originalImage || "" - borderColor: Color.transparent - borderWidth: 0 - fallbackIcon: "bell" - fallbackIconSize: 24 - } + Layout.preferredHeight: Math.round(40 * Style.uiScaleRatio) + Layout.alignment: Qt.AlignVCenter + imagePath: model.cachedImage || model.originalImage || "" + borderColor: Color.transparent + borderWidth: 0 + fallbackIcon: "bell" + fallbackIconSize: 24 } // Notification content column