From 89190e9c228c20537cda0d1a5d63fb76851d5094 Mon Sep 17 00:00:00 2001 From: ochafik Date: Sun, 26 Mar 2023 09:22:35 +0100 Subject: [PATCH] Hack for iphone 100vh issue: put footer on top and reserve space at the bottom optimistically --- src/App.tsx | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 7839c93..b3b71c7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -476,30 +476,20 @@ export function App({initialState, fs}: {initialState: State, fs: FS}) { } } + const isIPhone = /iPhone/.test(navigator.userAgent) return ( -
-
- - - {/*

- OpenSCAD -

*/} +
+ {isIPhone &&