Changeset 9327a85 in Klonkt
- Timestamp:
- 06/26/2026 04:56:10 PM (2 months ago)
- Branches:
- main
- Children:
- 69e7a79
- Parents:
- f6b2c68
- Location:
- src
- Files:
-
- 2 edited
-
server.js (modified) (1 diff)
-
views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/server.js
rf6b2c68 r9327a85 395 395 res.set('Cache-Control', 'no-cache'); 396 396 res.send(` 397 const CACHE_VERSION = 'pcms-v1 4-' + new Date().toISOString().split('T')[0];397 const CACHE_VERSION = 'pcms-v15-' + new Date().toISOString().split('T')[0]; 398 398 self.addEventListener('install', e => { 399 399 e.waitUntil(caches.open(CACHE_VERSION).then(c => c.addAll(['/']))); -
src/views/shell.ejs
rf6b2c68 r9327a85 220 220 p.remove(); 221 221 var i = rawEnv; 222 if (i < 20 && Math.max(screen.width, screen.height) >= 812) i = standalone ? 59 : 47; 222 if (i < 20 && Math.max(screen.width, screen.height) >= 812) { 223 // Portrait: the island sits at the TOP → full inset (UNCHANGED: standalone?59:47). 224 // Landscape: the island moves to the SIDE, so the top inset is ~0 → no top padding 225 // (only the masthead's own base padding remains). env() can't tell us (returns 0), 226 // so we key off orientation directly. 227 i = (window.innerWidth > window.innerHeight) ? 0 : (standalone ? 59 : 47); 228 } 223 229 document.documentElement.style.setProperty('--ios-safe-top', i + 'px'); 224 230 var mh = document.querySelector('.masthead');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)