From 2f283d0a24aa9794de05e1c1533bf244a2dea819 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 10 Feb 2024 12:13:44 +0800 Subject: [PATCH] :arrow_up: Fit to newest post link --- src/components/PostList.astro | 2 +- src/pages/posts/[slug].astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 5ec65af..606bfed 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -20,7 +20,7 @@ function getThumbnail(item: any): string | null {
{ posts?.map((item) => ( - +
{getThumbnail(item) && (
diff --git a/src/pages/posts/[slug].astro b/src/pages/posts/[slug].astro index 8d0a16b..e465524 100644 --- a/src/pages/posts/[slug].astro +++ b/src/pages/posts/[slug].astro @@ -137,7 +137,7 @@ const embedOptions = new URLSearchParams({ } #interactive-iframe { - height: 100vh; + height: calc(100vh - 64px); } }