diff --git a/spot/entrypoints/notifications.js b/spot/entrypoints/notifications.js index e22700779..da0d9d7c6 100644 --- a/spot/entrypoints/notifications.js +++ b/spot/entrypoints/notifications.js @@ -65,15 +65,14 @@ export default defineUnlistedScript(() => { notification.innerHTML = notificationContent; document.body.appendChild(notification); - // Force reflow to ensure styles are applied - notification.offsetHeight; // Trigger reflow + notification.offsetHeight; setTimeout(() => { notification.style.opacity = "0"; setTimeout(() => { document.body.removeChild(notification); }, 300); - }, 4000); + }, 4500); } function initNotificationListener() {