Changeset 9327a85 in Klonkt for src/views/shell.ejs
- Timestamp:
- 06/26/2026 04:56:10 PM (2 months ago)
- Branches:
- main
- Children:
- 69e7a79
- Parents:
- f6b2c68
- File:
-
- 1 edited
-
src/views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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)