Skip to content

Commit 91f00bc

Browse files
committed
Fix mobile layout
1 parent 21ca764 commit 91f00bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/page/components/post.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ export default function Post({
4848
>
4949
<div className="absolute top-3 ml-[-20px] h-[0.0725rem] w-3.5 bg-gray-700 dark:bg-gray-400"></div>
5050
<div className="min-w-0 w-full space-y-3">
51-
<span className="inline-flex text-sm space-x-2 whitespace-nowrap text-gray-500 dark:text-gray-400">
51+
<span className="inline-flex flex-col md:flex-row text-sm md:space-x-2 space-y-2 md:space-y-0 whitespace-nowrap text-gray-500 dark:text-gray-400">
5252
<PostDateTime publishedAt={publishedAt} />
5353

5454
<div className="flex items-center -mt-0.5">
55-
{(post?.tags ?? []).map((tag) => (
56-
<div key={tag} className="ml-2">
55+
{(post?.tags ?? []).map((tag, idx) => (
56+
<div key={tag} className={classNames(idx ? "ml-2" : "")}>
5757
<PostTypeBadge type={tag as PostType} />
5858
</div>
5959
))}

apps/web/components/post/post.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ export function Post({
7777
<div className="flex items-center justify-between space-x-4 relative">
7878
<div className="absolute top-3 ml-[-20px] h-[0.0725rem] w-3.5 bg-gray-700 dark:bg-gray-400"></div>
7979
<div className="min-w-0 w-full space-y-3">
80-
<span className="inline-flex text-sm space-x-2 whitespace-nowrap text-gray-500 dark:text-gray-400">
80+
<span className="inline-flex flex-col md:flex-row text-sm md:space-x-2 space-y-2 md:space-y-0 whitespace-nowrap text-gray-500 dark:text-gray-400">
8181
<PostDateTime publishedAt={publishedAt} startWithFullDate />
8282

8383
<div className="flex items-center -mt-0.5">
84-
{(post?.tags ?? []).map((tag: PostType) => (
85-
<div key={tag} className="ml-2">
84+
{(post?.tags ?? []).map((tag: PostType, idx) => (
85+
<div key={tag} className={classNames(idx ? "ml-2" : "")}>
8686
<PostTypeBadge type={tag} />
8787
</div>
8888
))}

0 commit comments

Comments
 (0)