diff options
author | Mario <mario@mariovavti.com> | 2024-12-20 12:35:29 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-12-20 12:35:29 +0000 |
commit | 9ec2db7c97a5130d64daf0e8d5954aeb4066e626 (patch) | |
tree | 462a64e436b5b71ec77529c2d4d636d9f83fd5ab /view/tpl | |
parent | 9bd94287dd65ec45214bf73855f76471c0fcde3f (diff) | |
download | volse-hubzilla-9ec2db7c97a5130d64daf0e8d5954aeb4066e626.tar.gz volse-hubzilla-9ec2db7c97a5130d64daf0e8d5954aeb4066e626.tar.bz2 volse-hubzilla-9ec2db7c97a5130d64daf0e8d5954aeb4066e626.zip |
port scrollToItem() to vanilla js and more fixes
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index f42ff21dc..16362691f 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -587,14 +587,7 @@ let notification = document.querySelector(`#nav-${type}-menu .notification[data-b64mid='${mid}']`); if (notification) { - // Fade out the notification by adjusting its opacity - notification.style.transition = 'opacity 0.5s'; - notification.style.opacity = 0; - - // After the transition ends, remove the notification element from the DOM - notification.addEventListener('transitionend', function () { - notification.remove(); - }); + notification.remove(); } } |