Notifications: properly handle large/many action buttons. Fix #379

This commit is contained in:
ItsLemmy
2025-09-27 09:17:23 -04:00
parent fe2654268d
commit 65cd95c62b
+5 -7
View File
@@ -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
}
}
}
}