Skip to content

Commit dbdd343

Browse files
authored
Merge pull request #110 from codeit-maso/feature/jeon
🎨 style: 스켈레톤 반응형 위치 수정
2 parents b6af7e1 + 4656ef9 commit dbdd343

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

src/components/Carousel/Carousel.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
//캐러셀 안밀리도록 추가함
8585
.carousel__cardset-wrapper {
8686
width: 100vw;
87+
padding: 0 24px;
8788
}
8889
}
8990
// 태블릿
@@ -102,6 +103,9 @@
102103

103104
//모바일
104105
@media (max-width: 767px) {
106+
.carousel__cardset-wrapper {
107+
padding: 0 20px;
108+
}
105109
h2 {
106110
margin-bottom: 12px;
107111
}

src/components/CarouselSkeleton/CarouselSkeleton.module.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
}
1818

1919
.section--sk {
20-
// position: absolute;
21-
// top: 52px;
22-
// z-index: 1;
2320
display: flex;
2421
gap: 20px;
2522
}
@@ -42,17 +39,19 @@
4239
-webkit-animation: shimmer 1.2s infinite;
4340
animation: shimmer 1.2s infinite;
4441
}
45-
46-
//모바일,태블릿 공통 적용
47-
@media (max-width: 1023px) {
42+
@media (max-width: 1200px) {
43+
//안밀리도록 추가함(캐러셀보다 화면 사이즈가 작아질때부터 적용해야함..)
4844
.section--sk {
49-
max-width: 100%;
45+
width: 100vw;
46+
padding: 0 24px;
5047
overflow: hidden;
51-
padding: 0 20px;
5248
}
5349
}
5450
//모바일
5551
@media (max-width: 767px) {
52+
.section--sk {
53+
padding: 0 20px;
54+
}
5655
.card--sk {
5756
min-width: 208px;
5857
height: 232px;

src/pages/RecipientList/RecipientList.module.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
-ms-user-select: none;
2929
user-select: none;
3030
}
31-
31+
@media (max-width: 1200px) {
32+
.section__h2 {
33+
width: 100%;
34+
}
35+
}
3236
@media (min-width: 768px) and (max-width: 1023px) {
3337
.section-listpage {
3438
padding: 0 24px;
@@ -37,10 +41,6 @@
3741
margin-top: 156px;
3842
margin-bottom: 24px;
3943
}
40-
41-
.section__h2 {
42-
max-width: 100%;
43-
}
4444
}
4545
@media (max-width: 767px) {
4646
.section-listpage {
@@ -51,10 +51,6 @@
5151
margin-top: 66px;
5252
margin-bottom: 24px;
5353
}
54-
55-
.section__h2 {
56-
width: 100%;
57-
}
5854
.section--mobile-gap {
5955
margin-bottom: 74px;
6056
}

0 commit comments

Comments
 (0)