From 18c75151f312d9a54be441ea07ccdf988c0eb7d4 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 25 Sep 2024 09:15:11 -0400 Subject: [PATCH] constrain header width --- packages/site-kit/src/lib/nav/Nav.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/site-kit/src/lib/nav/Nav.svelte b/packages/site-kit/src/lib/nav/Nav.svelte index b607d257e..3af9630b5 100644 --- a/packages/site-kit/src/lib/nav/Nav.svelte +++ b/packages/site-kit/src/lib/nav/Nav.svelte @@ -162,6 +162,8 @@ Top navigation bar for the application. It provides a slot for the left side, th transition: 0.4s var(--quint-out); transition-property: transform, background; isolation: isolate; + --nav-max-width: calc(var(--sk-line-max-width) + var(--sk-page-padding-side) + 64rem); + padding: 0 calc(0.5 * (100vw - var(--nav-max-width))); } nav::after {