From 959a41ac9e85b5e2a5111296a2f919612afaf543 Mon Sep 17 00:00:00 2001 From: Studio-18 Date: Sun, 2 Nov 2025 13:12:31 -0800 Subject: [PATCH] Add safe area padding for mobile browser chrome --- src/index.css | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index bd6213e1..a6a9709f 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,38 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; + +html, +body, +#root { + min-height: 100%; +} + +body { + min-height: 100vh; + background-color: #f8fafc; +} + +@supports (height: 100svh) { + body { + min-height: 100svh; + } +} + +@supports (height: 100dvh) { + body { + min-height: 100dvh; + } +} + +@supports (padding-bottom: constant(safe-area-inset-bottom)) { + body { + padding-bottom: constant(safe-area-inset-bottom); + } +} + +@supports (padding-bottom: env(safe-area-inset-bottom)) { + body { + padding-bottom: env(safe-area-inset-bottom); + } +}