web: move sidebar fold into frame

This commit is contained in:
2026-07-23 21:59:47 +09:00
parent 60460b23dc
commit e975c648c2
7 changed files with 121 additions and 108 deletions
@@ -5,11 +5,6 @@
import type { LayoutProps } from './$types';
let { data, children }: LayoutProps = $props();
let sidebarFolded = $state(false);
function toggleSidebarFold() {
sidebarFolded = !sidebarFolded;
}
</script>
{#snippet workspaceSidebar()}
@@ -19,8 +14,6 @@
repositories={data.repositories ?? null}
repositoriesError={data.repositoriesError ?? null}
currentPath={page.url.pathname}
folded={sidebarFolded}
onToggleFold={toggleSidebarFold}
/>
{/snippet}