Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(frontend): keep knowledge view controls visible

Binks Rivertonf8f20744623d
diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vue
index e55e07028..9ef0ce596 100644
--- a/frontend/src/views/knowledge/KnowledgeBase.vue
+++ b/frontend/src/views/knowledge/KnowledgeBase.vue
@@ -3050,7 +3050,10 @@ async function createNewSession(value: string): Promise<void> {
display: flex;
flex-direction: column;
min-height: 0;
+ min-width: 0;
position: relative;
+ container-type: inline-size;
+ container-name: doc-card-area;
/* 作为批量工具栏悬浮的定位上下文 */
}
@@ -3171,17 +3174,22 @@ async function createNewSession(value: string): Promise<void> {
align-items: center;
gap: 8px;
flex-shrink: 0;
+ position: relative;
+ z-index: 1;
}
- @media (min-width: 1280px) {
+ // The folder tree changes the available document width without changing the
+ // viewport width. Switch to a single row only when this content area itself
+ // is wide enough for TDesign's fixed-width filter controls.
+ @container doc-card-area (min-width: 1240px) {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 12px;
&__filters {
- flex: 0 1 auto;
- overflow-x: visible;
+ flex: 1 1 auto;
+ overflow-x: auto;
}
}