Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix with filename + reactivity when device change

Smaug67394737da970b3e
diff --git a/frontend/app/composables/Sidebar.ts b/frontend/app/composables/useSidebar.ts
similarity index 94%
rename from frontend/app/composables/Sidebar.ts
rename to frontend/app/composables/useSidebar.ts
index b512a3d9..a83363fe 100644
--- a/frontend/app/composables/Sidebar.ts
+++ b/frontend/app/composables/useSidebar.ts
@@ -7,7 +7,7 @@ const { isMobile } = useDevice();
const isOpened = ref(false);
const hasSidebar = ref(false);
-const paneWidth = ref(isMobile.value ? 350 : 390);
+const paneWidth = computed(() => (isMobile.value ? 340 : 390));
const isResizing = ref(false);
const workspaceId = ref<string | undefined>(undefined);
const active_id = ref<string | null>(null);