add tappable PWA install banner, tab bar safe area for notched devices

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 17:40:11 +01:00
parent 795662461a
commit b09a9855c9
3 changed files with 78 additions and 12 deletions
@@ -10,7 +10,7 @@ import { dbExec } from "@/shared/hooks/use-db";
import { GKV_KASSEN } from "@/shared/lib/gkv-kassen";
import { cn } from "@/shared/lib/utils";
function detectPlatform(): "ios" | "android" | "unknown" {
export function detectPlatform(): "ios" | "android" | "unknown" {
const ua = navigator.userAgent;
if (/iPad|iPhone|iPod/.test(ua)) return "ios";
if (/Android/.test(ua)) return "android";