From 17e60d0bef4b5a5e30a09e2fb4760c8434c6b7a6 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 3 Jan 2025 18:12:46 +0200 Subject: [PATCH] Fixed the cutoff border on mobile in blogs prev/next and tried to fix scroll issue but doesn't work, fuck css ig --- src/layouts/Terminal.astro | 9 ++++----- src/pages/blogs/[...slug].astro | 2 +- src/styles/terminal.css | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/layouts/Terminal.astro b/src/layouts/Terminal.astro index fdccaf3..2f969f5 100644 --- a/src/layouts/Terminal.astro +++ b/src/layouts/Terminal.astro @@ -14,10 +14,10 @@ const { path: title } = Astro.props; -
+
@@ -32,6 +32,5 @@ const { path: title } = Astro.props; transform: translate(-50%, -50%); background: var(--background); font-weight: 300; - overflow: hidden; } diff --git a/src/pages/blogs/[...slug].astro b/src/pages/blogs/[...slug].astro index 101d487..2f88fcf 100644 --- a/src/pages/blogs/[...slug].astro +++ b/src/pages/blogs/[...slug].astro @@ -36,7 +36,7 @@ const nextBlog = sortedBlogs[currentIndex - 1] || undefined;
-
+
{ previousBlog ? ( diff --git a/src/styles/terminal.css b/src/styles/terminal.css index 0eadd60..c108e19 100644 --- a/src/styles/terminal.css +++ b/src/styles/terminal.css @@ -23,7 +23,7 @@ html { } body { - overflow-y: scroll; + overflow-y: hidden; zoom: 1; }