Fix: Forum Tab-Marquee scrollt jetzt bis zum Textende (Padding eingerechnet), SW by-v596
This commit is contained in:
parent
d1572c52bc
commit
83958cbb0b
3 changed files with 5 additions and 3 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue