diff --git a/Modules/Toast/SimpleToast.qml b/Modules/Toast/SimpleToast.qml index aba436dd..02eb37d0 100644 --- a/Modules/Toast/SimpleToast.qml +++ b/Modules/Toast/SimpleToast.qml @@ -16,7 +16,10 @@ Item { signal hidden - width: Math.round(420 * Style.uiScaleRatio + Style.marginM * 1.5 * 2) + readonly property int notificationWidth: Math.round(400 * Style.uiScaleRatio) + + // Use exact notification width to match notifications precisely + width: notificationWidth height: Math.round(contentLayout.implicitHeight + Style.marginM * 3 * 2) visible: true opacity: 0 @@ -26,7 +29,7 @@ Item { Rectangle { id: background anchors.fill: parent - anchors.margins: Style.marginM * 1.5 + anchors.margins: Style.marginM radius: Style.radiusL color: Qt.alpha(Color.mSurface, Settings.data.osd.backgroundOpacity || 1.0) @@ -92,11 +95,14 @@ Item { RowLayout { id: contentLayout - anchors.fill: parent - anchors.topMargin: Style.marginL - anchors.bottomMargin: Style.marginL - anchors.leftMargin: Style.marginL * 2 - anchors.rightMargin: Style.marginL * 2 + anchors.top: parent.top + anchors.topMargin: Style.marginM + anchors.bottom: parent.bottom + anchors.bottomMargin: Style.marginM + anchors.left: parent.left + anchors.leftMargin: Style.marginM * 2 + anchors.right: parent.right + anchors.rightMargin: Style.marginM * 2 spacing: Style.marginL // Icon