Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Fix bottom bar: use transform trick to paint safe area

Maurice47028798b18b
diff --git a/client/src/index.css b/client/src/index.css
index 29f3f5b47..330c7a15e 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -3,13 +3,22 @@
@tailwind utilities;
html { height: 100%; overflow: hidden; background-color: var(--bg-primary); }
-body {
- position: fixed;
- inset: 0;
- margin: 0;
- overflow: auto;
- overscroll-behavior: none;
- -webkit-overflow-scrolling: touch;
+body { height: 100%; overflow: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; }
+
+/* iOS PWA: fill the home indicator safe area with app background */
+@supports (padding-bottom: env(safe-area-inset-bottom)) {
+ html::after {
+ content: '';
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: env(safe-area-inset-bottom, 0px);
+ background: var(--bg-primary);
+ transform: translateY(100%);
+ pointer-events: none;
+ z-index: 99999;
+ }
}
.atlas-tooltip {