Skip to content

Commit ef78a53

Browse files
committed
fix: responsive
1 parent ed2ece7 commit ef78a53

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/~/[slug]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export default async function Post(props: Params) {
2929
<Portal>
3030
<ReadingTimeProgressBar />
3131
</Portal>
32-
<VStack as="article" alignItems={"start"} py={{ base: "3rem" }}>
32+
<VStack as="article" alignItems={"start"} py={{ base: "3rem" }} w="100%">
3333
<PostHeader
3434
_heading={{
35-
fontSize: ["2xl", "5xl"],
36-
lineHeight: ["tall", "shorter"],
35+
fontSize: { base: "2xl", lg: "5xl" },
36+
lineHeight: { base: "tall", lg: "shorter" },
3737
className: merriweather.className,
3838
}}
3939
{...post}

src/components/posts/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const PostHeader = ({
1717
<Heading lineHeight={"short"} {..._heading}>
1818
{title}
1919
</Heading>
20-
<HStack>
20+
<HStack wrap="wrap">
2121
<Badge size={"lg"}>{author}</Badge>
2222
<Badge size={"lg"}>{stats?.text}</Badge>
2323
<Badge size={"lg"}>{format(date, "dd MMMM yyy")}</Badge>

0 commit comments

Comments
 (0)