Fix layout shifting when navigating to /posts
This commit is contained in:
@@ -7,7 +7,7 @@ const { p } = Astro.props
|
||||
---
|
||||
|
||||
<div class="mb-5 w-2/3">
|
||||
<time datetime={p['publishDate']} class="min-w-[120px] text-gray-500">{getFormattedDate(p['publishDate'])}</time>
|
||||
<time datetime={p['publishDate']} class=" text-gray-500">{getFormattedDate(p['publishDate'])}</time>
|
||||
<div>
|
||||
<a href={`/posts/${p['slug']}/`} rel="prefetch">
|
||||
<img src={ pb.files.getURL(p, p.headerImage) } class="rounded-xl border-12 border-white"/>
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
--accent: #F9DC5C;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
html body {
|
||||
@apply font-[Georgia];
|
||||
@apply w-[68%] mx-auto h-full;
|
||||
|
||||
Reference in New Issue
Block a user