From ee483d0e0ac1a9315b875609ea4fe4017df05e22 Mon Sep 17 00:00:00 2001 From: Lamparter <71598437+Lamparter@users.noreply.github.com> Date: Fri, 6 Dec 2024 07:52:31 +0000 Subject: [PATCH 1/8] Remove "view full post" button --- src/routes/blog/posts/+layout.svelte | 17 +---------------- src/styles/pages/blogPost.scss | 1 - 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/routes/blog/posts/+layout.svelte b/src/routes/blog/posts/+layout.svelte index 0374e57da..9d56adadf 100644 --- a/src/routes/blog/posts/+layout.svelte +++ b/src/routes/blog/posts/+layout.svelte @@ -42,26 +42,11 @@ class="back-button" href="/blog" title="Back to Blog" + style="margin-inline-start: -48px;" > {/if} - {#if minimal} - - (window.location.href = window.location.href.replace( - "?minimal", - "", - ))} - > - - - {/if}

{title}

diff --git a/src/styles/pages/blogPost.scss b/src/styles/pages/blogPost.scss index 3645b9b0a..17e48196b 100644 --- a/src/styles/pages/blogPost.scss +++ b/src/styles/pages/blogPost.scss @@ -25,7 +25,6 @@ .post- { &title { @include flex($align: center, $gap: 12px); - margin-inline-start: -48px; h1 { margin: 0; From 0ad53944057c7fa1c717ef82680f71444e1133b0 Mon Sep 17 00:00:00 2001 From: Lamparter <71598437+Lamparter@users.noreply.github.com> Date: Sat, 7 Dec 2024 07:59:20 +0000 Subject: [PATCH 2/8] Attempt 1 --- src/routes/+layout.svelte | 24 +++++++++-- src/styles/_global.scss | 82 -------------------------------------- src/styles/_scrollbar.scss | 81 +++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 86 deletions(-) create mode 100644 src/styles/_scrollbar.scss diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3a15967bf..66ed35fd2 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -68,6 +68,13 @@ }); }); }); + + let minimal = false; + + onMount(() => { + const params = new URLSearchParams(window.location.search); + minimal = params.has("minimal"); + }); @@ -124,7 +131,16 @@