From e71bd33e63aee3d521b9260fbaf2204f5759e724 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 17 May 2026 13:05:33 +0200 Subject: [PATCH] fix(BUG-2): drive sidebar collapse/expand via CSS attribute, not Alpine reactivity x-show and :class bindings inside @persist blocks do not re-evaluate when Alpine store changes. Replace all collapse-dependent bindings with CSS utility classes (nim-sb-expanded, nim-sb-collapsed, sidebar-nav-link) driven by html[data-sidebar-collapsed] in the critical inline style block. Co-Authored-By: Claude Sonnet 4.6 --- resources/views/components/sidebar.blade.php | 23 ++++++++++---------- resources/views/layouts/nimuli-app.blade.php | 8 ++++++- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/resources/views/components/sidebar.blade.php b/resources/views/components/sidebar.blade.php index bbd1927..87dd5e1 100644 --- a/resources/views/components/sidebar.blade.php +++ b/resources/views/components/sidebar.blade.php @@ -104,14 +104,14 @@
-
+
-
+
@if($workspace && $plan) -
+
{{ ucfirst($plan->name) }} Plan @if(str_contains(strtolower($plan->name), 'free')) @@ -290,11 +289,11 @@
{{ $initials ?: strtoupper(substr(auth()->user()->email, 0, 2)) }}
-
+
{{ auth()->user()->name }}
{{ auth()->user()->email }}
-
+ @csrf