notifs: fix being able to scroll

This commit is contained in:
2 * r + 2 * t 2025-06-04 22:36:03 +10:00
parent 3925626117
commit 93cc4eacb0

View file

@ -68,10 +68,11 @@ Item {
id: wrapper
required property Notifs.Notif modelData
required property int index
readonly property alias nonAnimHeight: notif.nonAnimHeight
implicitWidth: notif.implicitWidth
implicitHeight: notif.implicitHeight + Appearance.spacing.smaller
implicitHeight: notif.implicitHeight + (index > 0 ? Appearance.spacing.smaller : 0)
ListView.onRemove: removeAnim.start()
@ -114,6 +115,8 @@ Item {
ClippingRectangle {
anchors.top: parent.top
anchors.topMargin: wrapper.index > 0 ? Appearance.spacing.smaller : 0
color: "transparent"
radius: notif.radius
implicitWidth: notif.implicitWidth