From 0bd425a2aafe56b235fcc5ae247458f671bbf63b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 4 Aug 2026 14:04:07 +0800 Subject: [PATCH] feat: put search results in VScrollPanel with filler layout (no fixed height) --- wwwroot/knowledge_bases_list/search.ui | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/wwwroot/knowledge_bases_list/search.ui b/wwwroot/knowledge_bases_list/search.ui index 24f7b64..c52a217 100644 --- a/wwwroot/knowledge_bases_list/search.ui +++ b/wwwroot/knowledge_bases_list/search.ui @@ -1,6 +1,6 @@ { "widgettype": "VBox", - "options": {"padding": "20px", "spacing": "16px", "width": "100%"}, + "options": {"padding": "20px", "spacing": "16px", "width": "100%", "height": "100%", "css": "filler"}, "subwidgets": [ {"widgettype": "Text", "options": {"text": "🔍 知识检索", "cfontsize": 22, "fontWeight": "bold", "color": "#1a1a2e"}}, {"widgettype": "Text", "options": {"text": "选择知识库,输入文字或上传文件检索", "cfontsize": 13, "color": "#888"}}, @@ -28,10 +28,16 @@ }, { "widgettype": "VBox", - "id": "search_results", - "options": {"marginTop": "16px", "spacing": "0px"}, + "options": {"css": "filler", "marginTop": "16px", "width": "100%", "padding": "0", "spacing": "0"}, "subwidgets": [ - {"widgettype": "Text", "options": {"text": "选择知识库,输入文字或上传文件开始检索", "cfontsize": 14, "color": "#aaa", "halign": "center", "marginTop": "40px"}} + { + "widgettype": "VScrollPanel", + "id": "search_results", + "options": {"css": "filler", "padding": "0", "spacing": "0"}, + "subwidgets": [ + {"widgettype": "Text", "options": {"text": "选择知识库,输入文字或上传文件开始检索", "cfontsize": 14, "color": "#aaa", "halign": "center", "marginTop": "40px"}} + ] + } ] } ],