Skip to content

Commit

Permalink
chore(debug): sync the sidebar in state to prevent disappearing debug…
Browse files Browse the repository at this point in the history
… tool the first time
  • Loading branch information
PleahMaCaka committed Nov 2, 2023
1 parent 12c012b commit a71399a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
let isCollapsed = (localStorage.getItem("isCollapsed") === "true")
$stateStore.isSidebarCollapsed = isCollapsed
function toggleCollapse() {
// TODO merge this state to stateStore
isCollapsed = !isCollapsed
Expand All @@ -29,7 +31,7 @@
<i>
<Icon icon="ph:chat-bold" />
</i>
<span>Project Title Here</span>
<span>Project AIT</span>
</a>
{/if}
<button class="side-toggle-coll" on:click={toggleCollapse}>
Expand Down

0 comments on commit a71399a

Please sign in to comment.