From 35e66039a95be74c7b06f1fee1d6090d2ab98dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A4=80=EC=98=81?= Date: Tue, 31 Mar 2026 12:50:19 +0900 Subject: [PATCH 1/5] =?UTF-8?q?refactor:=20=ED=95=98=EB=8B=A8=20=EC=98=A4?= =?UTF-8?q?=EB=B2=84=EB=A0=88=EC=9D=B4=20=EC=B2=98=EB=A6=AC=20=EA=B3=B5?= =?UTF-8?q?=ED=86=B5=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/BottomOverlaySpacer.tsx | 24 +++++++++++++++++++ .../{layoutMetrics.ts => bottomOverlay.ts} | 14 ++++++++--- .../hooks/useLayoutBottomOverlayInset.ts | 2 +- .../notification/InAppNotificationToast.tsx | 6 ++--- src/pages/Chat/index.tsx | 8 ++----- .../components/ApplicationDetailContent.tsx | 7 +++++- src/pages/Notifications/index.tsx | 9 ++----- 7 files changed, 49 insertions(+), 21 deletions(-) create mode 100644 src/components/layout/BottomOverlaySpacer.tsx rename src/components/layout/{layoutMetrics.ts => bottomOverlay.ts} (63%) diff --git a/src/components/layout/BottomOverlaySpacer.tsx b/src/components/layout/BottomOverlaySpacer.tsx new file mode 100644 index 0000000..b0dd2f1 --- /dev/null +++ b/src/components/layout/BottomOverlaySpacer.tsx @@ -0,0 +1,24 @@ +import type { HTMLAttributes } from 'react'; +import { + DEFAULT_BOTTOM_OVERLAY_GAP, + type BottomOverlayGap, + useBottomOverlayOffset, +} from '@/components/layout/bottomOverlay'; +import { cn } from '@/utils/ts/cn'; + +interface BottomOverlaySpacerProps extends HTMLAttributes { + gap?: BottomOverlayGap; +} + +function BottomOverlaySpacer({ + gap = DEFAULT_BOTTOM_OVERLAY_GAP, + className, + style, + ...props +}: BottomOverlaySpacerProps) { + const height = useBottomOverlayOffset(gap); + + return