mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
Add a desktop-only toggle in the message-thread header to show/hide the contact sidebar (tags, deals, notes). On smaller laptops the always-on panel crowds the message thread; agents who only want to read and reply can now reclaim that horizontal space. The page owns the open/closed state and conditionally renders the sidebar; the thread renders the toggle button and reflects the state. The choice is persisted to localStorage (device-scoped, like the theme prefs) so it survives reloads. To avoid a hydration mismatch we default to open on the server and reconcile from storage in an effect after mount. Mobile is unchanged — the sidebar is never a permanent panel there and the toggle is hidden below lg. Closes #258 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| page.tsx | ||