Changeset c3ad46d in Klonkt


Ignore:
Timestamp:
06/17/2026 02:07:28 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
93d6345
Parents:
dd80030
Message:

Fix: horizontal clipping on html (not body) — no h-scroll + fixed bottom tab correct

Previous fix (overflow-x:clip on html) doesn't clip reliably at viewport level →
horizontal scroll returned + the fixed bar was mispositioned. Now:

  • html { overflow-x: hidden } → propagates to the viewport (no h-scroll), does NOT break position:fixed (html is the document scroller anyway).
  • body gets NO overflow-x → doesn't become a second scroll container → bottom tab stays fixed while scrolling.

CSS cache-buster v7.

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

Location:
src
Files:
2 edited

Legend:

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

    rdd80030 rc3ad46d  
    233233
    234234* { box-sizing: border-box; }
    235 html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
     235html {
     236    -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
     237    overscroll-behavior-y: none;
     238    /* Horizontaal clippen op ROOT-niveau: dit propageert naar de viewport (geen
     239       horizontale scroll) ZONDER position:fixed te breken — html is sowieso de
     240       document-scroller. De body mag GEEN overflow-x krijgen, want dan zou die een
     241       tweede scroll-container worden en zou de fixed bottom-tab meeschuiven. */
     242    overflow-x: hidden;
     243}
    236244body {
    237245    margin: 0;
    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;
    243246}
    244247body:not(.admin) {
     
    904907    }
    905908
    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. */
    909     body, html {
    910         overflow-x: hidden;   /* fallback iOS <16 */
    911         overflow-x: clip;
    912     }
     909    /* v9.3 — horizontaal clippen gebeurt nu globaal op html (zie de html-regel
     910       bovenaan). Hier bewust NIETS op body zetten: body als scroll-container zou
     911       de fixed bottom-tab op mobiel laten meeschuiven. */
    913912}
    914913
  • src/views/shell.ejs

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