diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-06 17:52:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-06 17:52:47 +1000 |
| commit | 218ee2de95e11e34f095fb8a1c14fa7793b393f8 (patch) | |
| tree | b11a96c27c5b1ea00ffc85a10f7a61f6cdaa4daa /modules | |
| parent | notifs: lock notif object until anim finish (diff) | |
| download | caelestia-shell-218ee2de95e11e34f095fb8a1c14fa7793b393f8.tar.gz caelestia-shell-218ee2de95e11e34f095fb8a1c14fa7793b393f8.tar.bz2 caelestia-shell-218ee2de95e11e34f095fb8a1c14fa7793b393f8.zip | |
notifs: actually fix y pos during remove anim
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/notifications/Content.qml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml index 3cc1301..a64ccb9 100644 --- a/modules/notifications/Content.qml +++ b/modules/notifications/Content.qml @@ -70,9 +70,15 @@ Item { required property Notifs.Notif modelData required property int index readonly property alias nonAnimHeight: notif.nonAnimHeight + property int idx + + onIndexChanged: { + if (index !== -1) + idx = index; + } implicitWidth: notif.implicitWidth - implicitHeight: notif.implicitHeight + (index === 0 ? 0 : Appearance.spacing.smaller) + implicitHeight: notif.implicitHeight + (idx === 0 ? 0 : Appearance.spacing.smaller) ListView.onRemove: removeAnim.start() @@ -115,7 +121,7 @@ Item { ClippingRectangle { anchors.top: parent.top - anchors.topMargin: wrapper.index === 0 ? 0 : Appearance.spacing.smaller + anchors.topMargin: wrapper.idx === 0 ? 0 : Appearance.spacing.smaller color: "transparent" radius: notif.radius |