Skip to content

Commit 1e0e730

Browse files
authored
Merge pull request #97 from codeit-maso/feature/jeon
🎨 style: 모바일에서 ::after 나타나는 에러 수정 시도
2 parents 8f646c5 + dca00b7 commit 1e0e730

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/RecipientCard/RecipientCard.module.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222

2323
.card {
24+
position: relative;
2425
overflow: hidden; // ::after 도형 잘리게
2526
min-width: 275px;
2627
height: 260px;
@@ -41,6 +42,7 @@
4142
&::after {
4243
content: '';
4344
position: absolute;
45+
z-index: -1;
4446
}
4547
&.purple {
4648
background: $purple-200;
@@ -114,7 +116,7 @@
114116
}
115117

116118
&:hover {
117-
transform: scale(0.96);
119+
transform: scale(0.96) translateZ(0);
118120
}
119121
}
120122
@media (max-width: 767px) {

0 commit comments

Comments
 (0)