Skip to content

Commit 2572e28

Browse files
authored
Merge pull request #118 from codeit-maso/feature/jeon
🎨 style: 1200이하부터 캐러셀 슬라이드
2 parents cfd3db3 + 1b16a01 commit 2572e28

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

src/components/Carousel/Carousel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function Carousel({ recipients }) {
88
const [startX, setstartX] = useState(0); // 클릭 시작 좌표 - 터치 스크롤
99
const [isBouncing, setBouncing] = useState(false); // 캐러셀 끝이면 bouncing 모션
1010
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
11-
const isDesktop = windowWidth > 1023;
11+
const isDesktop = windowWidth > 1200;
1212

1313
useEffect(() => {
1414
function handleResize() {

src/components/Carousel/Carousel.module.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@
8686
width: 100vw;
8787
padding: 0 24px;
8888
}
89-
}
90-
// 태블릿
91-
@media (max-width: 1023px) {
92-
.carousel__cardset-wrapper {
93-
width: 100vw;
94-
}
9589
.carousel::before,
9690
.carousel::after {
9791
display: none;
@@ -100,6 +94,19 @@
10094
display: none;
10195
}
10296
}
97+
// 태블릿
98+
@media (max-width: 1023px) {
99+
// .carousel__cardset-wrapper {
100+
// width: 100vw;
101+
// }
102+
// .carousel::before,
103+
// .carousel::after {
104+
// display: none;
105+
// }
106+
// .carousel__direction-button {
107+
// display: none;
108+
// }
109+
}
103110

104111
//모바일
105112
@media (max-width: 767px) {

0 commit comments

Comments
 (0)