From 401c7a15bb359d0fff3552c81fe2b480bcaf60af Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 1 Jun 2026 16:39:57 +0800 Subject: [PATCH] fix: restore load_dashboard.py (truncated), use CSS vars for dark mode, improve card spacing --- wwwroot/concurrent_users.ui | 2 +- wwwroot/index.ui | 14 +++++++------- wwwroot/stat_concurrent.ui | 1 + wwwroot/today_amount.ui | 2 +- wwwroot/total_users.ui | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/wwwroot/concurrent_users.ui b/wwwroot/concurrent_users.ui index 9170115..6555873 100644 --- a/wwwroot/concurrent_users.ui +++ b/wwwroot/concurrent_users.ui @@ -1,7 +1,7 @@ { "widgettype": "VBox", "options": { - "bgcolor": "#FFFFFF", + "bgcolor": "var(--sage-bg-card, #FFFFFF)", "padding": "24px", "borderRadius": "8px", "flex": "1", diff --git a/wwwroot/index.ui b/wwwroot/index.ui index f83f92b..45fe20c 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -5,7 +5,7 @@ "options": { "width": "100%", "height": "100%", - "bgcolor": "var(--bricks-bg-color, #ffffff)" + "bgcolor": "var(--sage-bg-primary, transparent)" }, "subwidgets": [ { @@ -68,9 +68,9 @@ "widgettype": "ResponsableBox", "options": { "width": "100%", - "gap": "12px", - "minWidth": "220px", - "marginBottom": "12px" + "gap": "16px", + "minWidth": "180px", + "marginBottom": "16px" }, "subwidgets": [ { @@ -127,9 +127,9 @@ "widgettype": "ResponsableBox", "options": { "width": "100%", - "gap": "12px", - "minWidth": "220px", - "marginBottom": "12px" + "gap": "16px", + "minWidth": "180px", + "marginBottom": "16px" }, "subwidgets": [ { diff --git a/wwwroot/stat_concurrent.ui b/wwwroot/stat_concurrent.ui index 2f94eb8..390c4ac 100644 --- a/wwwroot/stat_concurrent.ui +++ b/wwwroot/stat_concurrent.ui @@ -1,6 +1,7 @@ { "widgettype": "VBox", "options": { + "css": "stat-card", "padding": "14px", "borderRadius": "12px", "flex": "1", diff --git a/wwwroot/today_amount.ui b/wwwroot/today_amount.ui index 60abf59..bbfb043 100644 --- a/wwwroot/today_amount.ui +++ b/wwwroot/today_amount.ui @@ -1,7 +1,7 @@ { "widgettype": "VBox", "options": { - "bgcolor": "#FFFFFF", + "bgcolor": "var(--sage-bg-card, #FFFFFF)", "padding": "24px", "borderRadius": "8px", "flex": "1", diff --git a/wwwroot/total_users.ui b/wwwroot/total_users.ui index 942acfc..39f4abc 100644 --- a/wwwroot/total_users.ui +++ b/wwwroot/total_users.ui @@ -1,7 +1,7 @@ { "widgettype": "VBox", "options": { - "bgcolor": "#FFFFFF", + "bgcolor": "var(--sage-bg-card, #FFFFFF)", "padding": "24px", "borderRadius": "8px", "flex": "1",