From d69232a97e9027008596be1c2cde8dbda65512f5 Mon Sep 17 00:00:00 2001 From: Maxi Ferreira Date: Fri, 12 Aug 2022 12:06:35 -0700 Subject: [PATCH] Fixed layout shift --- src/components/Nav.astro | 2 ++ src/pages/index.astro | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 2392972..3e6b6cc 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -21,6 +21,8 @@ const { current = '' } = Astro.props; display: block; position: relative; margin-left: 20px; + min-width: 70px; + text-align: center; } a:not(.selected) { diff --git a/src/pages/index.astro b/src/pages/index.astro index 4312740..6391a2a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -37,6 +37,7 @@ const permalink = Astro.site.href; .home-copy { flex: 1; + padding: 0 1em; } h1 {