diff --git a/osd/NotificationPanel.qml b/osd/NotificationPanel.qml index a8445cf..153302d 100644 --- a/osd/NotificationPanel.qml +++ b/osd/NotificationPanel.qml @@ -64,29 +64,37 @@ Scope { hideTimer.stop(); } - ListView { - id: notifs - anchors.fill: parent - anchors.margins: 4 - clip: true - spacing: 4 - model: NotificationService.notifications - header: RippleButton { - buttonText: "Dismiss All" - buttonTextColor: Appearance.m3colors.m3onTertiaryContainer - colBackground: Appearance.m3colors.m3tertiaryContainer - releaseAction: NotificationService.dismissAll - buttonRadius: Appearance.rounding.unsharpenmore - width: notifs.width - 8 - } - delegate: NotificationItem { - required property Notification modelData - notif: modelData - textWidth: notifs.width - 8 - notificationRounding: Appearance.rounding.unsharpenmore - Layout.fillWidth: true - } - } + ColumnLayout { + id: layout + anchors.fill: parent + anchors.margins: 4 + spacing: 4 + + RippleButton { + buttonText: "Dismiss All" + buttonTextColor: Appearance.m3colors.m3onTertiaryContainer + colBackground: Appearance.m3colors.m3tertiaryContainer + releaseAction: NotificationService.dismissAll + buttonRadius: Appearance.rounding.unsharpenmore + Layout.fillWidth: true + } + + ListView { + id: notifs + Layout.fillWidth: true + Layout.fillHeight: true + clip: true + spacing: 4 + model: NotificationService.notifications + delegate: NotificationItem { + required property Notification modelData + notif: modelData + textWidth: notifs.width - 8 + notificationRounding: Appearance.rounding.unsharpenmore + Layout.fillWidth: true + } + } + } } } }