diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 615a897..18c1bd1 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -318,7 +318,9 @@ onUnmounted(() => { min-height: 0; overflow-y: auto; } -.app-content:has(.workspace-root) { +.app-content:has(.workspace-root), +.app-content:has(.chat-page), +.app-content:has(.knowledge-root) { overflow: hidden; } diff --git a/frontend/src/views/ChatView.vue b/frontend/src/views/ChatView.vue index 33d92b2..53fff93 100644 --- a/frontend/src/views/ChatView.vue +++ b/frontend/src/views/ChatView.vue @@ -1034,6 +1034,9 @@ onUnmounted(() => { display: flex; height: 100%; overflow: hidden; + max-width: 1600px; + width: 100%; + margin: 0 auto; } .chat-sidebar { diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index eb65111..adfee40 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -123,10 +123,20 @@ const formatEventDate = fmtCompact // ─── Graph panel ────────────────────────────────────────────────────────────── -const graphOpen = ref(false); +const _GRAPH_OPEN_KEY = 'fa_knowledge_graph_open' +const _GRAPH_EXP_KEY = 'fa_knowledge_graph_expanded' + +const graphOpen = ref(localStorage.getItem(_GRAPH_OPEN_KEY) === 'true') +const graphExpanded = ref(localStorage.getItem(_GRAPH_EXP_KEY) === 'true') function toggleGraph() { - graphOpen.value = !graphOpen.value; + graphOpen.value = !graphOpen.value + localStorage.setItem(_GRAPH_OPEN_KEY, String(graphOpen.value)) +} + +function toggleGraphExpand() { + graphExpanded.value = !graphExpanded.value + localStorage.setItem(_GRAPH_EXP_KEY, String(graphExpanded.value)) } // ─── Mini-chat widget ───────────────────────────────────────────────────────── @@ -262,7 +272,7 @@ onUnmounted(() => {