fix: 💄 Remove navbar and footer on print
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 1s

This commit is contained in:
Jesse Wierzbinski 2025-09-21 17:07:59 +02:00
parent cdc1d6a6a2
commit 064a4aa828
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ function SmallPrint() {
export function Footer() { export function Footer() {
return ( return (
<footer className="mx-auto w-full max-w-2xl space-y-10 pb-16 lg:max-w-5xl"> <footer className="mx-auto w-full max-w-2xl space-y-10 pb-16 lg:max-w-5xl print:hidden">
<PageNavigation /> <PageNavigation />
<SmallPrint /> <SmallPrint />
</footer> </footer>

View file

@ -25,7 +25,7 @@ export function Layout({
<div className="h-full lg:ml-72 xl:ml-80"> <div className="h-full lg:ml-72 xl:ml-80">
<motion.header <motion.header
layoutScroll={true} layoutScroll={true}
className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex" className="contents lg:pointer-events-none lg:fixed lg:inset-0 lg:z-40 lg:flex print:hidden"
> >
<div className="contents lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-r lg:border-zinc-900/10 lg:px-6 lg:pb-8 lg:pt-4 xl:w-80 lg:dark:border-white/10"> <div className="contents lg:pointer-events-auto lg:block lg:w-72 lg:overflow-y-auto lg:border-r lg:border-zinc-900/10 lg:px-6 lg:pb-8 lg:pt-4 xl:w-80 lg:dark:border-white/10">
<div className="hidden lg:flex"> <div className="hidden lg:flex">