From e904b928534df8f2abc6d572ea374b19550bb7ec Mon Sep 17 00:00:00 2001 From: Hwang Taehwan <107744534+stakbucks@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:53:23 +0900 Subject: [PATCH] fix(bottle): handle scrollable area height (#62) --- apps/bottle/src/app/profile/edit/profileEditStyle.css.ts | 2 +- .../src/components/profile/layout/profileLayoutStyle.css.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/bottle/src/app/profile/edit/profileEditStyle.css.ts b/apps/bottle/src/app/profile/edit/profileEditStyle.css.ts index ed44925..6bc1199 100644 --- a/apps/bottle/src/app/profile/edit/profileEditStyle.css.ts +++ b/apps/bottle/src/app/profile/edit/profileEditStyle.css.ts @@ -4,7 +4,7 @@ import { style } from '@vanilla-extract/css'; export const contentsContainerStyle = style({ width: '100%', - height: `calc(100vh - ${HEADER_HEIGHT}px + env(safe-area-inset-top))`, + height: `calc(100vh - ${HEADER_HEIGHT}px - env(safe-area-inset-top))`, display: 'flex', flexDirection: 'column', alignItems: 'center', diff --git a/apps/bottle/src/components/profile/layout/profileLayoutStyle.css.ts b/apps/bottle/src/components/profile/layout/profileLayoutStyle.css.ts index 330f139..ae5b51d 100644 --- a/apps/bottle/src/components/profile/layout/profileLayoutStyle.css.ts +++ b/apps/bottle/src/components/profile/layout/profileLayoutStyle.css.ts @@ -21,7 +21,7 @@ export const buttonContainer = style({ }); export const containerStyle = style({ - height: `calc(100vh - ${CONTAINER_OFFSET_HEIGHT - OVERLAP_HEIGHT}px + env(safe-area-inset-top))`, + height: `calc(100vh - ${CONTAINER_OFFSET_HEIGHT - OVERLAP_HEIGHT}px - env(safe-area-inset-top))`, overflow: 'scroll', msOverflowStyle: 'none', scrollbarWidth: 'none',