From afda02936471819b78db1ce38ff4f1aed38f1473 Mon Sep 17 00:00:00 2001 From: Mikkel Svartveit Date: Tue, 17 Oct 2023 23:28:34 -0700 Subject: [PATCH] Hide scrollbars on fullscreen photo page --- src/layouts/RootLayout.astro | 5 +++-- src/pages/photography/[photo].astro | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/RootLayout.astro b/src/layouts/RootLayout.astro index 3cb434c..2e28e05 100644 --- a/src/layouts/RootLayout.astro +++ b/src/layouts/RootLayout.astro @@ -3,9 +3,10 @@ import { ViewTransitions } from "astro:transitions"; interface Props { title?: string; + hideScrollbar?: boolean; } -const { title } = Astro.props; +const { title, hideScrollbar } = Astro.props; const fullTitle = `${title && title + " – "}Mikkel Svartveit`; --- @@ -24,7 +25,7 @@ const fullTitle = `${title && title + " – "}Mikkel Svartveit`; - + diff --git a/src/pages/photography/[photo].astro b/src/pages/photography/[photo].astro index e7ad220..30fad73 100644 --- a/src/pages/photography/[photo].astro +++ b/src/pages/photography/[photo].astro @@ -20,7 +20,7 @@ export const getStaticPaths = (async () => { const { photo } = Astro.props; --- - +