Changeset d5b9d2a in Klonkt


Ignore:
Timestamp:
06/17/2026 01:59:24 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
dd80030
Parents:
8f6a61d
Message:

Fix: bottom tab scrolls with the page on mobile (overflow-x hidden→clip)

body (and on mobile body+html) had overflow-x:hidden. hidden automatically sets
the other axis to overflow:auto → body becomes a scroll container → position:fixed
(the bottom tab) becomes relative to it and scrolls along (visible e.g. on the
admin list). overflow-x:clip clips horizontally without creating that scroll context;
hidden stays as fallback for iOS <16. CSS cache-buster v6.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/assets/css/style.css

    r8f6a61d rd5b9d2a  
    236236body {
    237237    margin: 0;
    238     overflow-x: hidden;
     238    /* clip i.p.v. hidden: hidden zet overflow-y automatisch op 'auto' → de body
     239       wordt een scroll-container → op mobiel schuift position:fixed (bottom-tab)
     240       mee bij scrollen. clip clipt horizontaal zonder dat effect. */
     241    overflow-x: hidden;   /* fallback oudere browsers */
     242    overflow-x: clip;
    239243}
    240244body:not(.admin) {
     
    900904    }
    901905
    902     /* v9.3 — Forceer niets schuift horizontaal weg */
     906    /* v9.3 — Forceer niets schuift horizontaal weg.
     907       clip i.p.v. hidden: clipt zonder een scroll-container te maken, zodat
     908       position:fixed (bottom-tab) niet meeschuift bij scrollen op mobiel. */
    903909    body, html {
    904         overflow-x: hidden;
     910        overflow-x: hidden;   /* fallback iOS <16 */
     911        overflow-x: clip;
    905912    }
    906913}
  • src/views/shell.ejs

    r8f6a61d rd5b9d2a  
    163163
    164164<!-- v9 stylesheet (full palette system) -->
    165 <link rel="stylesheet" href="/assets/css/style.css?v=5">
     165<link rel="stylesheet" href="/assets/css/style.css?v=6">
    166166
    167167<!-- Audio player styles: loaded on every page so the mini-player works
Note: See TracChangeset for help on using the changeset viewer.