diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 89ea286..18e94c3 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '595'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '596'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/forum.js b/backend/static/js/pages/forum.js index 7a7634c..1b5abd7 100644 --- a/backend/static/js/pages/forum.js +++ b/backend/static/js/pages/forum.js @@ -135,7 +135,9 @@ window.Page_forum = (() => { const btn = e.target.closest('.by-tab'); const span = btn?.querySelector('.by-tab-text'); if (!span) return; - const overflow = span.scrollWidth - btn.clientWidth; + const style = getComputedStyle(btn); + const padH = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight); + const overflow = span.scrollWidth - (btn.clientWidth - padH); if (overflow <= 2) return; span.style.setProperty('--tab-scroll-px', `-${overflow}px`); span.classList.add('scrolling'); diff --git a/backend/static/sw.js b/backend/static/sw.js index bfe5f0d..1a56aac 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v595'; +const CACHE_VERSION = 'by-v596'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache