Changeset f6b2c68 in Klonkt for src/server.js


Ignore:
Timestamp:
06/26/2026 04:49:12 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
9327a85
Parents:
1c85964
Message:

fix(ios-pwa): pad body for safe-area when masthead is hidden on mobile

Root cause (found via on-device debug): <=767px the masthead is display:none
(bottom-tab replaces it), so its safe-area padding has no effect (height 0) and the
profile-header lands at top=0 behind the Dynamic Island. Landscape (>767px) shows the
masthead so it worked there. Fix: pad body:not(.on-admin) by --ios-safe-top in the same
mobile media query, and make the JS adaptive (masthead hidden -> force body padding,
else masthead). Removed the temporary debug overlay; SW cache -> v14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r1c85964 rf6b2c68  
    395395  res.set('Cache-Control', 'no-cache');
    396396  res.send(`
    397 const CACHE_VERSION = 'pcms-v13-' + new Date().toISOString().split('T')[0];
     397const CACHE_VERSION = 'pcms-v14-' + new Date().toISOString().split('T')[0];
    398398self.addEventListener('install', e => {
    399399  e.waitUntil(caches.open(CACHE_VERSION).then(c => c.addAll(['/'])));
Note: See TracChangeset for help on using the changeset viewer.