fix: extend recipe hero images into status bar safe area
All checks were successful
CI / update (push) Successful in 3m30s

Account for env(safe-area-inset-top) in the hero negative margin-top
so images fill the status bar area on edge-to-edge Android instead of
leaving empty space.
This commit is contained in:
2026-04-09 21:33:51 +02:00
parent 830a1f98a9
commit 62515b95f0
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.21.1",
"version": "1.21.2",
"private": true,
"type": "module",
"scripts": {

View File

@@ -46,7 +46,7 @@
.section {
margin-bottom: -20vh;
margin-top: calc(-3.5rem - 12px);
margin-top: calc(-3.5rem - 12px - env(safe-area-inset-top, 0px));
transform-origin: center top;
transform: scaleY(calc(1 - var(--scale)));
}

View File

@@ -137,7 +137,7 @@
margin-bottom: calc(var(--parallax-scale) * (20vh - min(60vh, 520px)));
transform-origin: center top;
transform: scaleY(calc(1 - var(--parallax-scale)));
margin-top: calc(-3.5rem - 12px);
margin-top: calc(-3.5rem - 12px - env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion) {
.hero-section {