From 7205fa5775f40bc0286c5077fc562597519dce0f Mon Sep 17 00:00:00 2001 From: thislight Date: Wed, 20 Nov 2024 00:31:09 +0800 Subject: [PATCH] Scaffold: add safe area padding for top bar --- src/material/Scaffold.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material/Scaffold.css b/src/material/Scaffold.css index b4a7c74..30e18e5 100644 --- a/src/material/Scaffold.css +++ b/src/material/Scaffold.css @@ -4,6 +4,9 @@ z-index: var(--tutu-zidx-nav, auto); .MuiToolbar-root { + margin-left: var(--safe-area-inset-left); + margin-right: var(--safe-area-inset-right); + >.MuiButtonBase-root { &:first-child { margin-left: -0.5em;