web: rename sidebar collapse to fold

This commit is contained in:
2026-07-23 20:50:30 +09:00
parent f848a96343
commit 6e53df0303
4 changed files with 38 additions and 28 deletions
@@ -5,10 +5,10 @@
import type { LayoutProps } from './$types';
let { data, children }: LayoutProps = $props();
let sidebarCollapsed = $state(false);
let sidebarFolded = $state(false);
function toggleSidebar() {
sidebarCollapsed = !sidebarCollapsed;
function toggleSidebarFold() {
sidebarFolded = !sidebarFolded;
}
</script>
@@ -19,8 +19,8 @@
repositories={data.repositories ?? null}
repositoriesError={data.repositoriesError ?? null}
currentPath={page.url.pathname}
collapsed={sidebarCollapsed}
onToggleCollapsed={toggleSidebar}
folded={sidebarFolded}
onToggleFold={toggleSidebarFold}
/>
{/snippet}