Skip to content

Commit 9cd7e56

Browse files
committed
style: apply responsive styles
1 parent 5e448a8 commit 9cd7e56

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function RootLayout({
4242
}>) {
4343
return (
4444
<html lang="ko" className={`${nanum.variable} ${pretendard.variable}`}>
45-
<body>{children}</body>
45+
<body className="px-4 transition-all md:px-0">{children}</body>
4646
</html>
4747
);
4848
}

components/PostList.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ export default function PostList({ posts }: { posts: ReducedPost[] }) {
3030
{postsByYear[year].map((post) => (
3131
<li key={post.slug} className="group/item text-gray-800">
3232
<a
33-
className="flex w-full items-center justify-between transition-opacity hover:!opacity-100 group-hover:opacity-40"
33+
className="flex w-full items-center justify-between gap-5 transition-opacity hover:!opacity-100 group-hover:opacity-40"
3434
href={post.slug}
3535
>
3636
<div className="group-hover/item:selection p-0.5">{post.title}</div>
37-
<div className="group-hover/item:selection p-0.5 text-sm">{post.date}</div>
37+
<div className="group-hover/item:selection text-nowrap p-0.5 text-sm">
38+
{post.date}
39+
</div>
3840
</a>
3941
</li>
4042
))}

0 commit comments

Comments
 (0)