Skip to content

Commit 5e8b9b0

Browse files
committed
hotfix: 반응형 사이즈 추가
1 parent 9405dfb commit 5e8b9b0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/website/src/pages/Blog/Blog/BlogItem.styles.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import styled from 'styled-components';
33
// 스타일 컴포넌트 (블로그랑 같지만, 다를 수 있으니께)
44
// 요긴 대충 짜서 해결
55
export const Card = styled.a<{$isMobile: boolean; $isTablet: boolean;}>`
6-
width: ${(props) => (props.$isMobile ? '130px' : props.$isTablet ? '240px' : '270px')};
7-
height: ${(props) => (props.$isMobile ? '205px' : props.$isTablet ? '260px' : '302px')};
6+
width: ${(props) => (props.$isMobile ? '130px' : props.$isTablet ? '240px' : '250px')};
7+
height: ${(props) => (props.$isMobile ? '205px' : props.$isTablet ? '260px' : '279px')};
88
99
border-radius: ${(props) => (props.$isMobile ? '10px' : '8px')};
1010
overflow: hidden;
@@ -22,7 +22,7 @@ export const Image = styled.div<{$isMobile: boolean; $isTablet: boolean;}>`
2222
2323
overflow: hidden;
2424
border-radius: 8px;
25-
height: ${(props) => (props.$isMobile ? '87px' : props.$isTablet ? '150px' : '180px')};
25+
height: ${(props) => (props.$isMobile ? '87px' : props.$isTablet ? '150px' : '167px')};
2626
background-color: var(--FarmSystem_LightGrey);
2727
2828
display: flex;

apps/website/src/pages/Blog/Project/ProjectItem.style.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import styled from 'styled-components';
33
// 스타일 컴포넌트 (블로그랑 같지만, 다를 수 있으니께)
44
// 요긴 대충 짜서 해결
55
export const Card = styled.div<{$isMobile: boolean; $isTablet: boolean;}>`
6-
width: ${(props) => (props.$isMobile ? '130px' : props.$isTablet ? '240px' : '270px')};
7-
height: ${(props) => (props.$isMobile ? '205px' : props.$isTablet ? '260px' : '302px')};
6+
width: ${(props) => (props.$isMobile ? '130px' : props.$isTablet ? '240px' : '250px')};
7+
height: ${(props) => (props.$isMobile ? '205px' : props.$isTablet ? '260px' : '279px')};
88
99
border-radius: ${(props) => (props.$isMobile ? '10px' : '8px')};
1010
overflow: hidden;
@@ -21,7 +21,7 @@ export const Image = styled.div<{$isMobile: boolean; $isTablet: boolean;}>`
2121
2222
overflow: hidden;
2323
border-radius: 8px;
24-
height: ${(props) => (props.$isMobile ? '87px' : props.$isTablet ? '150px' : '180px')};
24+
height: ${(props) => (props.$isMobile ? '87px' : props.$isTablet ? '150px' : '167px')};
2525
background-color: var(--FarmSystem_LightGrey);
2626
2727
display: flex;

0 commit comments

Comments
 (0)