fix(navigation): move mobile menu inside viewport and remove hx-preserve to fix active route highlighting
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
This commit is contained in:
@@ -40,13 +40,12 @@
|
||||
hx-select="#viewport"
|
||||
>
|
||||
|
||||
{{!-- The Mobile Menu is outside the swap target and stays alive --}}
|
||||
{{> mobile-menu}}
|
||||
|
||||
{{!--
|
||||
This container is the target for HTMX swaps.
|
||||
Moving everything inside ensures navigation highlights and states update on every click.
|
||||
--}}
|
||||
<div id="viewport" class="min-h-screen flex flex-col">
|
||||
{{> mobile-menu}}
|
||||
{{> header}}
|
||||
|
||||
<main class="flex-grow">
|
||||
|
||||
Reference in New Issue
Block a user