From eed21ce6a5081cc9980d90f67c7d45330373e772 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 29 May 2026 00:13:08 +0800 Subject: [PATCH] fix: responsive UI with VScrollPanel, cfontsize, css:card --- wwwroot/index.ui | 270 +++++++++++++++++++++++++++-------------------- 1 file changed, 155 insertions(+), 115 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index a5afa71..93cb53d 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -11,15 +11,13 @@ "options": { "width": "100%", "alignItems": "center", - "padding": "16px 24px", - "marginBottom": "0" + "marginBottom": "24px" }, "subwidgets": [ { "widgettype": "Title2", "options": { - "text": "LLM 模型管理", - "fontWeight": "700" + "text": "LLM 模型管理" } }, { @@ -28,139 +26,181 @@ { "widgettype": "Text", "options": { - "text": "模型配置、目录分类与调用监控", - "fontSize": "14px" + "text": "模型类型、模型配置与记账失败记录", + "cfontsize": 1.2 } } ] }, { - "widgettype": "ResponsableBox", + "widgettype": "VScrollPanel", "options": { - "gap": "12px", - "minWidth": "200px", - "padding": "0 24px 16px 24px" + "css": "filler" }, "subwidgets": [ { "widgettype": "VBox", "options": { - "css": "card", - "padding": "16px 24px", - "cursor": "pointer" + "spacing": 24 }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/llmcatelog_list.ui')}}" - }, - "mode": "replace" - } - ], "subwidgets": [ { - "widgettype": "Title5", + "widgettype": "ResponsableBox", "options": { - "text": "模型类型管理", - "fontWeight": "600" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理模型的分类目录和类型定义", - "fontSize": "12px" - } + "gap": "16px", + "minWidth": "250px" + }, + "subwidgets": [ + { + "widgettype": "VBox", + "options": { + "css": "card", + "cheight": 12, + "cwidth": 23, + "padding": "24px", + "cursor": "pointer", + "borderRadius": "8px" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/llmcatelog_list.ui')}}" + }, + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "svg": "", + "width": "40px", + "height": "40px" + } + }, + { + "widgettype": "Title4", + "options": { + "text": "模型类型管理", + "marginTop": "12px" + } + }, + { + "widgettype": "Text", + "options": { + "text": "管理模型的分类和类型", + "cfontsize": 1.2 + } + } + ] + }, + { + "widgettype": "VBox", + "options": { + "css": "card", + "cheight": 12, + "cwidth": 23, + "padding": "24px", + "cursor": "pointer", + "borderRadius": "8px" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/llm')}}" + }, + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "svg": "", + "width": "40px", + "height": "40px" + } + }, + { + "widgettype": "Title4", + "options": { + "text": "模型管理", + "marginTop": "12px" + } + }, + { + "widgettype": "Text", + "options": { + "text": "管理 LLM 模型配置", + "cfontsize": 1.2 + } + } + ] + }, + { + "widgettype": "VBox", + "options": { + "css": "card", + "cheight": 12, + "cwidth": 23, + "padding": "24px", + "cursor": "pointer", + "borderRadius": "8px" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "app.llmage_content", + "options": { + "url": "{{entire_url('/llmage/failed_accounting.ui')}}" + }, + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "svg": "", + "width": "40px", + "height": "40px" + } + }, + { + "widgettype": "Title4", + "options": { + "text": "记账失败记录", + "marginTop": "12px" + } + }, + { + "widgettype": "Text", + "options": { + "text": "查看和检索记账失败的记录", + "cfontsize": 1.2 + } + } + ] + } + ] } ] }, { "widgettype": "VBox", - "options": { - "css": "card", - "padding": "16px 24px", - "cursor": "pointer" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/llm')}}" - }, - "mode": "replace" - } - ], - "subwidgets": [ - { - "widgettype": "Title5", - "options": { - "text": "模型配置", - "fontWeight": "600" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理 LLM 模型的API配置与供应商映射", - "fontSize": "12px" - } - } - ] - }, - { - "widgettype": "VBox", - "options": { - "css": "card", - "padding": "16px 24px", - "cursor": "pointer" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.llmage_content", - "options": { - "url": "{{entire_url('/llmage/failed_accounting.ui')}}" - }, - "mode": "replace" - } - ], - "subwidgets": [ - { - "widgettype": "Title5", - "options": { - "text": "记账失败记录", - "fontWeight": "600" - } - }, - { - "widgettype": "Text", - "options": { - "text": "查看和检索调用计费失败记录", - "fontSize": "12px" - } - } - ] + "id": "llmage_content" } ] - }, - { - "widgettype": "VBox", - "id": "llmage_content", - "css": "filler", - "options": { - "width": "100%", - "padding": "0 24px", - "overflowY": "auto" - } } ] }