From f305c3f3f64befbd92c92f5ced43dfa9ced3d309 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 26 May 2025 22:32:25 +0800 Subject: notifs: better height Get blocked by other panels from the right side (osd and session) Limit max height to screen height --- modules/notifications/Notification.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/notifications/Notification.qml') diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index d8c8ba7..039b519 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -33,6 +33,7 @@ StyledRect { hoverEnabled: true cursorShape: pressed ? Qt.ClosedHandCursor : undefined acceptedButtons: Qt.LeftButton | Qt.MiddleButton + preventStealing: true onEntered: root.modelData?.timer.stop() onExited: root.modelData?.timer.start() @@ -461,7 +462,7 @@ StyledRect { TextMetrics { id: actionTextMetrics - text: modelData?.text + text: modelData?.text ?? "" font.family: actionText.font.family font.pointSize: actionText.font.pointSize elide: Text.ElideRight -- cgit v1.2.3-freya