From be899fdd1a5408e41e63a5f7c8be7753a8fafda8 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Tue, 10 May 2022 21:59:56 +0000 Subject: [PATCH] Fixing mobile header for docs example (#3335) --- examples/docs/src/components/Header/Header.astro | 11 +++++++---- examples/docs/src/config.ts | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/docs/src/components/Header/Header.astro b/examples/docs/src/components/Header/Header.astro index 7dcbb987d..ca787dc63 100644 --- a/examples/docs/src/components/Header/Header.astro +++ b/examples/docs/src/components/Header/Header.astro @@ -18,8 +18,8 @@ const lang = currentPage && getLanguageFromURL(currentPage); @@ -48,6 +48,7 @@ const lang = currentPage && getLanguageFromURL(currentPage); } .logo { + flex: 1; display: flex; overflow: hidden; width: 30px; @@ -61,6 +62,7 @@ const lang = currentPage && getLanguageFromURL(currentPage); } .logo a { + display: flex; padding: 0.5em 0.25em; margin: -0.5em -0.25em; text-decoration: none; @@ -78,6 +80,7 @@ const lang = currentPage && getLanguageFromURL(currentPage); } .logo h1 { + display: none; font: inherit; color: inherit; margin: 0; @@ -103,12 +106,12 @@ const lang = currentPage && getLanguageFromURL(currentPage); margin: 0; z-index: 0; } + .logo h1 { + display: initial; + } .menu-toggle { display: none; } - .logo { - width: auto; - } } /** Style Algolia */ diff --git a/examples/docs/src/config.ts b/examples/docs/src/config.ts index 537723f43..b81bf9b4f 100644 --- a/examples/docs/src/config.ts +++ b/examples/docs/src/config.ts @@ -1,5 +1,5 @@ export const SITE = { - title: 'Your Documentation Website', + title: 'Documentation', description: 'Your website description.', defaultLanguage: 'en_US', };