Skip to content

Commit fdff361

Browse files
committed
Negative margin for mobile
1 parent 2eacfeb commit fdff361

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/containers/post/RelatedPostsForGuest.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function RelatedPostsForGuest({
8080
<h4>관심 있을 만한 포스트</h4>
8181
{postsWithAds.map((post, index) => {
8282
return post ? (
83-
<Row>
83+
<Row style={{ marginBottm: '-1.5rem' }}>
8484
<StyledRowLink
8585
to={`/@${post.user.username}/${post.url_slug}`}
8686
key={post.id ?? index}
@@ -143,7 +143,7 @@ function RelatedPostsForGuest({
143143
</StyledLink>
144144
</Item>
145145
) : (
146-
<Item style={{ marginBottom: '-3.375rem' }}>
146+
<Item style={{ marginBottom: '-0.75rem' }}>
147147
<RelatedPostAd />
148148
</Item>
149149
),
@@ -202,6 +202,7 @@ const Item = styled.div`
202202
}
203203
}
204204
h5 {
205+
height: 3rem;
205206
font-size: 1rem;
206207
line-height: 1.5;
207208
margin-top: 0.5rem;

0 commit comments

Comments
 (0)