Skip to content

Commit 77694fb

Browse files
yyuneesangkyu39
andauthored
202603223 #324 버그fe 스크롤 버그 수정 필요 (#326)
* [FE]피드백 모달 수정 * [FIX] Scroll error in chrome * [FIX] rabbit review * [FIX] scroll error * [FIX] Rabbit review --------- Co-authored-by: sangkyu39 <sangkyu.p39@gmail.com>
1 parent c467396 commit 77694fb

9 files changed

Lines changed: 17 additions & 4 deletions

File tree

frontend/src/components/Layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Layout() {
4444
}, [isMobile, isSidebarOpen]);
4545

4646
return (
47-
<div style={{ display: 'flex', position: 'relative', minHeight: '100vh' }}>
47+
<div style={{ display: 'flex', position: 'relative', minHeight: 'calc(var(--vh, 1vh) * 100)' }}>
4848
<Header
4949
isRoot={isRoot}
5050
onToggleSidebar={() => setIsSidebarOpen(!isSidebarOpen)}

frontend/src/components/Sidebar.module.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
top: 0;
55
left: 0;
66
width: 100vw;
7-
height: calc(100 * var(--vh));
7+
height: 100vh;
8+
height: calc(var(--vh, 1vh) * 100);
89
background-color: transparent;
910
z-index: 999;
1011
display: block;
@@ -23,6 +24,7 @@
2324
left: 0;
2425
width: 264px;
2526
height: 100vh;
27+
height: calc(var(--vh, 1vh) * 100);
2628
padding-top: 110px;
2729
padding-left: 32px;
2830
padding-right: 32px;
@@ -76,6 +78,7 @@
7678
.homeSidebarMenu {
7779
top: 90px;
7880
height: calc(100vh - 90px);
81+
height: calc(var(--vh, 1vh) * 100 - 90px);
7982
padding-top: 20px;
8083
transform: translateX(0);
8184
}
@@ -362,6 +365,7 @@
362365
padding: 24px 24px 18px;
363366
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
364367
max-height: calc(100vh - 40px);
368+
max-height: calc(var(--vh, 1vh) * 100 - 40px);
365369
overflow-y: auto;
366370
display: flex;
367371
flex-direction: column;
@@ -475,6 +479,7 @@
475479
width: min(540px, calc(100vw - 24px));
476480
padding: 20px 16px 14px;
477481
max-height: calc(100vh - 24px);
482+
max-height: calc(var(--vh, 1vh) * 100 - 24px);
478483
}
479484

480485
.feedbackModalHeader h2 {

frontend/src/index.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ html {
5151
}
5252

5353
#root {
54-
height: calc(100 * var(--vh));
54+
min-height: 100vh;
55+
min-height: calc(var(--vh, 1vh) * 100);
5556
margin: 0;
5657
padding: 0;
5758
position: relative;

frontend/src/pages/AdminDashboard.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display: flex;
33
width: 100%;
44
min-height: 100vh;
5+
min-height: calc(var(--vh, 1vh) * 100);
56
background: #f9fafb;
67
}
78

frontend/src/pages/AdminHome.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display: flex;
33
width: 100%;
44
min-height: 100vh;
5+
min-height: calc(var(--vh, 1vh) * 100);
56
background: #f9fafb;
67
}
78

frontend/src/pages/Board.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
top: 0;
1616
left: 0;
1717
width: 100vw;
18-
height: 100vh;
18+
height: calc(var(--vh, 1vh) * 100);
1919
background-color: rgba(255, 255, 255, 1);
2020
z-index: -1;
2121
pointer-events: none;

frontend/src/pages/Home.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.container {
22
width: 100vw;
33
height: 100vh;
4+
height: calc(var(--vh, 1vh) * 100);
45
overflow: hidden;
56
position: relative;
67
}

frontend/src/pages/LoginAndSignUp.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
justify-content: center;
55
align-items: center;
66
height: 100vh;
7+
height: calc(var(--vh, 1vh) * 100);
78
background: #fff;
89
}

frontend/src/pages/external/External.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.container {
22
width: 100%;
33
min-height: 100vh;
4+
min-height: calc(var(--vh, 1vh) * 100);
45
display: flex;
56
flex-direction: column;
67
background-color: #ffffff;
@@ -60,6 +61,7 @@
6061
left: 0;
6162
width: 100vw;
6263
height: 100vh;
64+
height: calc(var(--vh, 1vh) * 100);
6365
background-color: rgba(0, 0, 0, 0.5);
6466
z-index: 999;
6567
animation: fadeIn 0.3s ease;
@@ -80,6 +82,7 @@
8082
left: 0;
8183
width: 280px;
8284
height: 100vh;
85+
height: calc(var(--vh, 1vh) * 100);
8386
background-color: transparent;
8487
backdrop-filter: blur(20px);
8588
z-index: 1000;

0 commit comments

Comments
 (0)