From 25ae8b6ee42a394c4e550d6612a1c082e75d28fc Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Wed, 26 Aug 2026 08:46:50 +0200 Subject: [PATCH] fix(convivo): tab bar safe-area + no-cache index.html - Tab bar: respect env(safe-area-inset-bottom) so the iOS home indicator no longer clips the tab labels (min-height + bottom padding). Screen bottom padding also grows by the safe-area inset. - nginx: index.html now sends Cache-Control: no-cache so clients always fetch the latest hashed bundle after a redeploy (assets stay immutable). Fixes stale-bundle behavior seen on phones (old 'Pick a session first' button, etc.). --- apps/convivo/nginx.conf.template | 5 ++++- apps/convivo/src/styles.css | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/convivo/nginx.conf.template b/apps/convivo/nginx.conf.template index 057de40..0902d7e 100644 --- a/apps/convivo/nginx.conf.template +++ b/apps/convivo/nginx.conf.template @@ -20,8 +20,11 @@ server { gzip_types text/plain text/css application/json application/javascript image/svg+xml; # SPA fallback: any non-file, non-proxied route serves index.html so the - # client-side router can take over. + # client-side router can take over. index.html is never cached so clients + # always pick up the latest hashed bundle after a redeploy (the /assets/ + # bundles are content-hashed and safely immutable). location / { + add_header Cache-Control "no-cache"; try_files $uri $uri/ /index.html; } diff --git a/apps/convivo/src/styles.css b/apps/convivo/src/styles.css index 98a9a5f..f2b4ca9 100644 --- a/apps/convivo/src/styles.css +++ b/apps/convivo/src/styles.css @@ -22,9 +22,9 @@ body { box-shadow: 0 0 0 2px #3a3333, 0 40px 90px rgba(66,60,60,.28); margin-top: 2vh; } } -.screen { flex: 1; overflow-y: auto; padding: 22px 20px 100px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; } +.screen { flex: 1; overflow-y: auto; padding: 22px 20px calc(100px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; } .screen::-webkit-scrollbar { display: none; } -.screen.no-tab { padding-bottom: 28px; } +.screen.no-tab { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } /* ---------- Primitives ---------- */ .card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px rgba(66,60,60,.07); } @@ -113,10 +113,10 @@ textarea.input { resize: none; min-height: 96px; } /* ---------- Tab bar ---------- */ .tabbar { - position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 40; + position: absolute; left: 0; right: 0; bottom: 0; min-height: 84px; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; align-items: flex-start; - justify-content: space-around; padding: 10px 8px 0; + justify-content: space-around; padding: 10px 8px env(safe-area-inset-bottom); } .tab { background: none; border: none; color: var(--muted); font-size: 10.5px; font-weight: 700;