From 04913dbe426340cc9da602308a7c3b10035d9de9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 May 2026 13:42:44 +0800 Subject: [PATCH] refactor: 3-part layout - title (fixed), tab header/cards (fixed), content (filler, scrollable) --- wwwroot/index.ui | 106 ++++++++++------------------------------------- 1 file changed, 22 insertions(+), 84 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 8d40304..0e22dac 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -12,7 +12,8 @@ "options": { "width": "100%", "alignItems": "center", - "marginBottom": "24px" + "padding": "16px 24px", + "marginBottom": "0" }, "subwidgets": [ { @@ -39,51 +40,17 @@ { "widgettype": "ResponsableBox", "options": { - "gap": "16px", + "gap": "12px", "minWidth": "200px", - "marginBottom": "24px" - }, - "subwidgets": [ - { - "widgettype": "urlwidget", - "options": { - "url": "{{entire_url('/llmage/stat_total_models.ui')}}" - } - }, - { - "widgettype": "urlwidget", - "options": { - "url": "{{entire_url('/llmage/stat_today_calls.ui')}}" - } - }, - { - "widgettype": "urlwidget", - "options": { - "url": "{{entire_url('/llmage/stat_today_amount.ui')}}" - } - }, - { - "widgettype": "urlwidget", - "options": { - "url": "{{entire_url('/llmage/stat_catelog_count.ui')}}" - } - } - ] - }, - { - "widgettype": "ResponsableBox", - "options": { - "gap": "16px", - "minWidth": "250px", - "marginBottom": "24px" + "padding": "0 24px 16px 24px" }, "subwidgets": [ { "widgettype": "VBox", "options": { "bgcolor": "#1E293B", - "padding": "24px", - "borderRadius": "12px", + "padding": "16px 24px", + "borderRadius": "8px", "border": "1px solid #334155", "cursor": "pointer" }, @@ -101,28 +68,18 @@ ], "subwidgets": [ { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "36px", - "height": "36px", - "marginBottom": "16px" - } - }, - { - "widgettype": "Title4", + "widgettype": "Title5", "options": { "text": "模型类型管理", "color": "#F1F5F9", - "fontWeight": "600", - "marginBottom": "8px" + "fontWeight": "600" } }, { "widgettype": "Text", "options": { "text": "管理模型的分类目录和类型定义", - "fontSize": "14px", + "fontSize": "12px", "color": "#94A3B8" } } @@ -132,8 +89,8 @@ "widgettype": "VBox", "options": { "bgcolor": "#1E293B", - "padding": "24px", - "borderRadius": "12px", + "padding": "16px 24px", + "borderRadius": "8px", "border": "1px solid #334155", "cursor": "pointer" }, @@ -151,28 +108,18 @@ ], "subwidgets": [ { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "36px", - "height": "36px", - "marginBottom": "16px" - } - }, - { - "widgettype": "Title4", + "widgettype": "Title5", "options": { "text": "模型配置", "color": "#F1F5F9", - "fontWeight": "600", - "marginBottom": "8px" + "fontWeight": "600" } }, { "widgettype": "Text", "options": { "text": "管理 LLM 模型的API配置与供应商映射", - "fontSize": "14px", + "fontSize": "12px", "color": "#94A3B8" } } @@ -182,8 +129,8 @@ "widgettype": "VBox", "options": { "bgcolor": "#1E293B", - "padding": "24px", - "borderRadius": "12px", + "padding": "16px 24px", + "borderRadius": "8px", "border": "1px solid #334155", "cursor": "pointer" }, @@ -201,28 +148,18 @@ ], "subwidgets": [ { - "widgettype": "Svg", - "options": { - "svg": "", - "width": "36px", - "height": "36px", - "marginBottom": "16px" - } - }, - { - "widgettype": "Title4", + "widgettype": "Title5", "options": { "text": "记账失败记录", "color": "#F1F5F9", - "fontWeight": "600", - "marginBottom": "8px" + "fontWeight": "600" } }, { "widgettype": "Text", "options": { "text": "查看和检索调用计费失败记录", - "fontSize": "14px", + "fontSize": "12px", "color": "#94A3B8" } } @@ -233,10 +170,11 @@ { "widgettype": "VBox", "id": "llmage_content", + "css": "filler", "options": { "width": "100%", - "flex": "1", - "marginTop": "20px" + "padding": "0 24px", + "overflowY": "auto" } } ]