From 65cd95c62b2300810cb1780965b6e76046db3eb9 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Sat, 27 Sep 2025 09:17:23 -0400 Subject: [PATCH] Notifications: properly handle large/many action buttons. Fix #379 --- Modules/Notification/Notification.qml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 3cf73d3f9..b7f48abec 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -341,11 +341,14 @@ Variants { } // Notification actions - RowLayout { + Flow { Layout.fillWidth: true spacing: Style.marginS * scaling Layout.topMargin: Style.marginM * scaling + flow: Flow.LeftToRight + layoutDirection: Qt.LeftToRight + // Store the notification ID for access in button delegates property string parentNotificationId: notificationId @@ -378,17 +381,12 @@ Variants { textColor: hovered ? Color.mOnTertiary : Color.mOnPrimary hoverColor: Color.mTertiary outlined: false - Layout.preferredHeight: 24 * scaling + implicitHeight: 24 * scaling onClicked: { NotificationService.invokeAction(parent.parentNotificationId, actionData.identifier) } } } - - // Spacer to push buttons to the left - Item { - Layout.fillWidth: true - } } } }