From 1a8ec8bc3e92d851961637169ec9b68324c2308b Mon Sep 17 00:00:00 2001 From: ernstmul Date: Mon, 31 Mar 2025 14:06:10 +0200 Subject: [PATCH] Fix: margin onboarding when no header is present --- src/lib/layout/shell.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/layout/shell.svelte b/src/lib/layout/shell.svelte index 2c323467d..12a62ca6c 100644 --- a/src/lib/layout/shell.svelte +++ b/src/lib/layout/shell.svelte @@ -143,6 +143,7 @@ class:is-open={$showSubNavigation} class:u-hide={$wizard.show || $log.show || $wizard.cover} class:is-fixed-layout={$activeHeaderAlert?.show} + class:no-header={!showHeader} style:--p-side-size={sideSize}> {#if showHeader} @@ -211,6 +212,14 @@ min-height: calc(100vh - 48px); } + .no-header { + min-height: 100vh; + + .content { + margin-block-start: 0; + } + } + :global(main:has(.sub-navigation)) { .main-content { @media (min-width: 1024px) {