Skip to content

Commit 12d3a0a

Browse files
nertenerte
authored andcommitted
[Refactor] edit ProductInfo style
1 parent d86c63d commit 12d3a0a

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

src/pages/ProductPage/ProductInfo.style.jsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export const ProductInfoWrapper = styled.div`
66
gap: 24px;
77
padding-bottom: 40px;
88
border-bottom: 1px solid ${theme.color.gray200};
9-
109
@media (max-width: 375px) {
1110
flex-direction: column;
1211
padding-bottom: 24px;
@@ -24,29 +23,14 @@ export const ProductInfoWrapper = styled.div`
2423
`;
2524

2625
export const ProductImg = styled.img`
27-
max-width: 486px;
28-
max-height: 486px;
26+
width: 100%;
27+
height: 100%;
2928
border-radius: 16px;
30-
aspect-ratio: 1/1;
31-
@media (max-width: 375px) {
32-
min-width: 343px;
33-
min-height: 343px;
34-
}
35-
@media (min-width: 375px) and (max-width: 590px) {
36-
min-width: 343px;
37-
min-height: 343px;
38-
margin: 0px auto;
39-
}
40-
@media (min-width: 376px) and (max-width: 768px) {
41-
max-width: 340px;
42-
max-height: 340px;
43-
}
4429
`;
4530

4631
export const ImgDiv = styled.div`
4732
width: 486px;
4833
height: 486px;
49-
border-radius: 16px;
5034
aspect-ratio: 1/1;
5135
@media (max-width: 375px) {
5236
min-width: 343px;

0 commit comments

Comments
 (0)