From 72e1478e43d9cc58bcfc9dcacc23383b064a3aec Mon Sep 17 00:00:00 2001 From: codytseng Date: Fri, 3 Jan 2025 14:16:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20some=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/PrimaryPageLayout/index.tsx | 2 +- src/layouts/SecondaryPageLayout/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/PrimaryPageLayout/index.tsx b/src/layouts/PrimaryPageLayout/index.tsx index bb3b0b1a..d1da3e9c 100644 --- a/src/layouts/PrimaryPageLayout/index.tsx +++ b/src/layouts/PrimaryPageLayout/index.tsx @@ -89,7 +89,7 @@ const PrimaryPageLayout = forwardRef( scrollBarClassName="sm:z-50" ref={scrollAreaRef} style={{ - paddingBottom: 'calc(env(safe-area-inset-bottom) + 3rem)' + paddingBottom: isSmallScreen ? 'calc(env(safe-area-inset-bottom) + 3rem)' : '' }} > {titlebar && ( diff --git a/src/layouts/SecondaryPageLayout/index.tsx b/src/layouts/SecondaryPageLayout/index.tsx index e1deb71f..83f1b73b 100644 --- a/src/layouts/SecondaryPageLayout/index.tsx +++ b/src/layouts/SecondaryPageLayout/index.tsx @@ -75,7 +75,7 @@ export default function SecondaryPageLayout({ scrollBarClassName="sm:z-50" ref={scrollAreaRef} style={{ - paddingBottom: 'calc(env(safe-area-inset-bottom) + 3rem)' + paddingBottom: isSmallScreen ? 'env(safe-area-inset-bottom) + 3rem)' : '' }} >