Skip to content

Commit 7b9b852

Browse files
committed
refactor: 태그 시트 백그라운드 요소 UI 깨지는 현상 수정
1 parent fdfce91 commit 7b9b852

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/components/SelectTag/TagSheet/TagSheet.module.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
inset: 0;
44
background: rgba(0, 0, 0, 0.3);
55
z-index: 2;
6+
max-width: 37.5rem;
7+
margin: 0 auto;
68
}
79

810
.BottomSheet {
911
position: fixed;
1012
bottom: 0;
11-
left: 0;
1213
width: 100%;
14+
max-width: 37.5rem;
1315
height: 80%;
1416
background: var(--color-white);
1517
border-radius: 1.25rem 1.25rem 0 0;

src/styles/global.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,13 @@ textarea {
2727
outline: none;
2828
background-color: transparent;
2929
}
30+
31+
body[data-scroll-locked] {
32+
overflow: visible !important;
33+
padding: 0 !important;
34+
position: static !important;
35+
}
36+
37+
html body[data-scroll-locked] {
38+
margin: 0 auto !important;
39+
}

0 commit comments

Comments
 (0)