From 20ab8b7dec11f6b6a96c6745078277a68af0c8d1 Mon Sep 17 00:00:00 2001 From: SandObserver <260779319+SandObserver@users.noreply.github.com> Date: Fri, 18 Sep 2026 19:33:28 -0400 Subject: [PATCH] Sync dashboard.js with the tile press settle listener --- public/js/dashboard.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 7cc608e..00ba92b 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -1055,6 +1055,15 @@ async function boot() { _pollTimers = []; }; + /* Keep. Without it Safari leaves the tile scaled after a new tab opens. */ + document.addEventListener('click', e => { + if (!(e.target instanceof Element)) return; + const a = e.target.closest('a[target="_blank"]:is(.icon, .di, .folder-icon-link)'); + if (!a) return; + a.classList.add('settled'); + a.addEventListener('pointerleave', () => a.classList.remove('settled'), { once: true }); + }); + document.addEventListener('visibilitychange', () => { if (document.hidden) { stopPolling();