mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
fix(pwa): keep the status bar readable in the light theme
The installed iOS app uses the `black-translucent` status bar, which always draws white text, and the shell painted the strip behind it in the card colour. In the light theme that is near-white, so the clock and battery vanished. The light theme now paints the strip in its dark ink; the dark theme is unchanged.
This commit is contained in:
1 parent
72dcd32f7a
commit
00c56b0dd5
1 file changed
+10
@@ -724,6 +724,16 @@ body,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The installed iOS app runs with `black-translucent` (`layout.tsx`), which
|
||||
* always draws the clock and battery in white. Over the light theme's card
|
||||
* colour they disappear, so the light theme paints the strip in its dark
|
||||
* ink instead.
|
||||
*/
|
||||
:root.light .shell-safe-area {
|
||||
background-image: linear-gradient(var(--foreground), var(--foreground));
|
||||
}
|
||||
|
||||
/*
|
||||
* The on-screen keyboard. iOS Safari, and Chrome on Android by default,
|
||||
* shrink only the visual viewport when the keyboard opens: everything
|
||||
|
||||
Reference in new issue
Block a user