From 3faca7f1345d54ea7f8828d394b460a9763172b3 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 14 Jul 2026 10:02:07 +0200 Subject: [PATCH] fix: hide duplicate navbar logo during hydration Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: d4a4c425-5047-433e-abb6-14afc1d416d8 --- src/css/custom.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index b3b5cf131b..0f20b491da 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -104,13 +104,16 @@ x-search { visibility: hidden; } -/* Navbar logo uses ThemedComponent which sets display:none as base, - relying on [data-theme] selectors to show. This causes flicker - during navigation. Force it always visible since we use one logo. */ +/* Keep the shared light/dark logo visible during navigation, but hide the + duplicate image rendered before Docusaurus hydrates. */ .navbar__brand img { display: initial !important; } +.navbar__brand img + img { + display: none !important; +} + /* ---------------------------------------------------------------------------- Algolia DocSearch — brand colour alignment