From 9ec2db7c97a5130d64daf0e8d5954aeb4066e626 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 20 Dec 2024 12:35:29 +0000 Subject: port scrollToItem() to vanilla js and more fixes --- view/tpl/notifications_widget.tpl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'view/tpl') 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(); } } -- cgit v1.2.3