From b12c8788c791a3ce56bfa48d0c6e8fc19ecbeeed Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 09:51:54 +0000 Subject: [PATCH] Fix duplicate auth menu: inject fragment in both desktop and mobile sections Fragment contains responsive desktop/mobile spans. Inject in both header sections so each span shows at the correct breakpoint. Co-Authored-By: Claude Opus 4.6 --- templates/_types/root/header/_header.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/_types/root/header/_header.html b/templates/_types/root/header/_header.html index 8442236..33f2c0f 100644 --- a/templates/_types/root/header/_header.html +++ b/templates/_types/root/header/_header.html @@ -41,9 +41,10 @@ {% endcall %} {# Mobile user info #} -
- {# Auth menu mobile — part of auth-menu fragment (id=auth-menu-mobile) #} - {% if not auth_menu_html %} +
+ {% if auth_menu_html %} + {{ auth_menu_html | safe }} + {% else %} {% if g.user %} {% include '_types/root/mobile/_full_user.html' %} {% else %}