LiveView DOM patching was stripping the client-side sidebar-collapsed class from #sidebar-wrapper on every navigation. Fix: put the class on document.documentElement which LiveView never touches. - Sync script in <head> applies state before first paint (no flash) - Hook click handler toggles on <html> + saves to localStorage - CSS selectors updated to html.sidebar-collapsed - Removed phx-click JS.toggle_class (hook handles toggle directly) |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| graphql | ||
| helpers | ||
| live | ||
| plugs | ||
| changelog_parser.ex | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| graphql_socket.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| remote_ip.ex | ||
| router.ex | ||
| scoped_resource.ex | ||
| telemetry.ex | ||
| telemetry_filter.ex | ||
| user_auth.ex | ||