Skip to content

Commit d21e525

Browse files
committed
Reorder elements for the PostThumbnail component
1 parent e1636f6 commit d21e525

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

components/PostThumbnail/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ export function PostThumbnail({ className, post }: PostThumbnailProps) {
1717

1818
return (
1919
<div className={classes}>
20-
<Heading el="p" size="m" className="PostThumbnail__Title">
21-
<Link as={NextLink} href={post.url}>
22-
{post.title}
23-
</Link>
24-
</Heading>
25-
2620
<ul className="PostThumbnail__Subheading">
2721
<li className="PostThumbnail__Subheading__Item">
2822
<Timestamp className="PostThumbnail__Timestamp" date={post.date} />
@@ -41,6 +35,12 @@ export function PostThumbnail({ className, post }: PostThumbnailProps) {
4135
)}
4236
</ul>
4337

38+
<Heading el="p" size="m" className="PostThumbnail__Title">
39+
<Link as={NextLink} href={post.url}>
40+
{post.title}
41+
</Link>
42+
</Heading>
43+
4444
<Text>{post.spoiler}</Text>
4545
</div>
4646
);

components/PostThumbnail/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.PostThumbnail__Title {
6-
margin-bottom: 0.2em;
6+
margin-bottom: 0.5em;
77
}
88

99
.PostThumbnail__Subheading {

0 commit comments

Comments
 (0)