From 42f3b7bf264ab9288877a6117bdf7c1ce62bafa2 Mon Sep 17 00:00:00 2001 From: ymq Date: Thu, 20 Aug 2026 21:45:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E4=BD=9C=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=8C=89=E9=92=AE=E5=BC=B9=E7=AA=97=E2=80=94?= =?UTF-8?q?=E2=80=94MdWidget=20=E5=A4=96=E5=8C=85=20VScrollPanel=EF=BC=8C?= =?UTF-8?q?=E9=95=BF=E6=96=87=E6=A1=A3=E5=8F=AF=E6=BB=9A=E5=8A=A8=E4=B8=8D?= =?UTF-8?q?=E6=88=AA=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/workspace_view.dspy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wwwroot/api/workspace_view.dspy b/wwwroot/api/workspace_view.dspy index ef1b7c4..f0eb136 100644 --- a/wwwroot/api/workspace_view.dspy +++ b/wwwroot/api/workspace_view.dspy @@ -34,15 +34,19 @@ ext = os.path.splitext(name)[1].lower() file_url = entire_url("/pipeline-sdlc/api/workspace_file.dspy") + "?id=" + quote(file_id) -# txt/md → MdWidget 渲染 +# txt/md → VScrollPanel 包裹 MdWidget 渲染(可滚动,长文档不截断) md_exts = ['.md', '.txt'] if ext in md_exts: return { "widgettype": "PopupWindow", "options": {"title": name + " (查看)", "width": "85%", "height": "85%", "auto_open": True, "resizable": True}, "subwidgets": [{ - "widgettype": "MdWidget", - "options": {"md_url": file_url, "width": "100%", "height": "100%"} + "widgettype": "VScrollPanel", + "options": {"css": "filler", "width": "100%", "height": "100%"}, + "subwidgets": [{ + "widgettype": "MdWidget", + "options": {"md_url": file_url, "width": "100%"} + }] }] }