Skip to content

Commit

Permalink
fix layout shift from postmeta with min height
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 27, 2024
1 parent c03a5dd commit d1413f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/PostMeta.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Suspense>
<template #default>
<p class="text-[var(--background-400)]">
<p class="min-h-4 text-[var(--background-400)]">
{{ page?.date }} · {{ wordCount }} words
</p>
</template>
Expand Down
3 changes: 2 additions & 1 deletion pages/blog/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<Suspense>
<template #default>
<main>
<div class="mb-[-30px]">
<div class="min-h-[1.65rem] mb-[-30px]">
<LazyPostMeta v-if="isMounted" />
</div>

<ContentLoader />
<hr />
<RelatedPosts v-if="isMounted" />
Expand Down

0 comments on commit d1413f6

Please sign in to comment.