Skip to content

Commit 9251d1f

Browse files
committed
Better responsive design
1 parent 99c39c7 commit 9251d1f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/common/PostCard.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ const Block = styled.div`
150150
overflow: hidden;
151151
display: flex;
152152
flex-direction: column;
153+
${mediaQuery(944)} {
154+
width: calc(50% - 2rem);
155+
}
153156
${mediaQuery(767)} {
154157
margin: 0;
155158
width: 100%;

src/components/home/HomeResponsive.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Block = styled.div`
2525
width: 912px;
2626
}
2727
${mediaQuery(944)} {
28-
width: 672px;
28+
width: calc(100% - 2rem);
2929
}
3030
${mediaQuery(767)} {
3131
width: calc(100% - 2rem);

0 commit comments

Comments
 (0)