From 38411dd44bc0c148267a7bf036964e81e5e3b682 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Sun, 12 Jul 2026 20:25:22 +0200 Subject: [PATCH] fix: hide backoffice navbar-toggler when there's nothing to collapse The toggler button was always rendered, but its collapse target (#navbarSupportedContent) only existed for authenticated users. On the login page, tapping the menu button on a narrow screen did nothing because the target it pointed at wasn't in the DOM. --- templates/backoffice/nav.html.twig | 18 +++++++++--------- tests/Controller/LoginControllerTest.php | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/templates/backoffice/nav.html.twig b/templates/backoffice/nav.html.twig index 18fee18..1ae8c91 100644 --- a/templates/backoffice/nav.html.twig +++ b/templates/backoffice/nav.html.twig @@ -1,16 +1,16 @@