Skip to content

Commit

Permalink
update post layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ndinata committed May 31, 2024
1 parent 222eaaa commit 675ce6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/hanzi.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { type, char, sub, pinyin } = Astro.props;
{!!pinyin && <span>{sub}</span>}
</div>
) : (
<div class="-mr-1 flex flex-col items-center justify-center text-lg">
<div class="-mr-0.5 flex flex-col items-center justify-center text-lg">
<span>{char}</span>
</div>
)
Expand Down
4 changes: 3 additions & 1 deletion src/pages/_post-layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const lastUpdatedDateStr = format(frontmatter.lastUpdatedDate, "dd MMM yyyy");
}
</div>

<div class="flex flex-wrap gap-2 gap-y-5 md:w-[58ch] md:self-center">
<div
class="flex flex-wrap gap-x-2 gap-y-6 md:w-[56ch] md:gap-x-1.5 md:self-center"
>
<slot />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const chars = parseMantramText(entry.body.trim());
{
chars.map((char) =>
char.type === "linebr" ? (
<div class="flex h-3 w-full" />
<div class="flex h-1 w-full" />
) : (
<Hanzi {...char} />
),
Expand Down

0 comments on commit 675ce6c

Please sign in to comment.