Skip to content

Commit 82cb373

Browse files
committed
fix: ScrollArea 너비 수정
1 parent 8b91f6f commit 82cb373

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/Layout/RootLayout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import styled from "@emotion/styled";
55
import HomeFilter from "../../components/Filter/HomeFilter";
66
import SwapFilter from "../../components/Filter/SwapFilter";
77

8+
// 라벨: RootLayout-ScrollArea (css-19qyp3z로 생성되는 외부 컨테이너)
89
const ScrollArea = styled.div`
910
max-width: 390px;
11+
width: 100%;
1012
margin: 0 auto;
1113
flex: 1;
1214
min-height: 0; /* flex 축소 문제 해결 */
@@ -82,7 +84,10 @@ function RootLayout() {
8284
}
8385
filterComponent={filterComponent}
8486
/>
85-
<ScrollArea hasGNB={!isProductDetailPage}>
87+
<ScrollArea
88+
hasGNB={!isProductDetailPage}
89+
data-label="RootLayout-ScrollArea"
90+
>
8691
<Outlet />
8792
</ScrollArea>
8893
{!isProductDetailPage && <GNB />}

0 commit comments

Comments
 (0)