fix: reduce margins, padding, chart heights to eliminate scrollbar

This commit is contained in:
yumoqing 2026-06-01 16:08:14 +08:00
parent c89c0d89de
commit 966c89080b
12 changed files with 24 additions and 24 deletions

View File

@ -1,7 +1,7 @@
{ {
"widgettype": "ChartBar", "widgettype": "ChartBar",
"options": { "options": {
"height": "250px", "height": "210px",
"width": "100%", "width": "100%",
"data_url": "{{entire_url('api/top_models.dspy')}}", "data_url": "{{entire_url('api/top_models.dspy')}}",
"nameField": "model_name", "nameField": "model_name",

View File

@ -1,7 +1,7 @@
{ {
"widgettype": "ChartBar", "widgettype": "ChartBar",
"options": { "options": {
"height": "250px", "height": "210px",
"data_url": "{{entire_url('api/top_providers.dspy')}}", "data_url": "{{entire_url('api/top_providers.dspy')}}",
"nameField": "provider_name", "nameField": "provider_name",
"valueFields": ["total_amount", "cnt"] "valueFields": ["total_amount", "cnt"]

View File

@ -1,7 +1,7 @@
{ {
"widgettype": "ChartBar", "widgettype": "ChartBar",
"options": { "options": {
"height": "250px", "height": "210px",
"data_url": "{{entire_url('api/top_users.dspy')}}", "data_url": "{{entire_url('api/top_users.dspy')}}",
"nameField": "user_name", "nameField": "user_name",
"valueFields": ["total_amount", "cnt"] "valueFields": ["total_amount", "cnt"]

View File

@ -17,7 +17,7 @@
"options": { "options": {
"width": "100%", "width": "100%",
"alignItems": "center", "alignItems": "center",
"marginBottom": "24px" "marginBottom": "12px"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -65,9 +65,9 @@
,{ ,{
"widgettype": "ResponsableBox", "widgettype": "ResponsableBox",
"options": { "options": {
"gap": "16px", "gap": "12px",
"minWidth": "220px", "minWidth": "220px",
"marginBottom": "24px" "marginBottom": "12px"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -123,9 +123,9 @@
{ {
"widgettype": "ResponsableBox", "widgettype": "ResponsableBox",
"options": { "options": {
"gap": "16px", "gap": "12px",
"minWidth": "220px", "minWidth": "220px",
"marginBottom": "24px" "marginBottom": "12px"
}, },
"subwidgets": [ "subwidgets": [
{ {

View File

@ -2,10 +2,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #22c55e" "borderLeft": "4px solid #22c55e"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -1,10 +1,10 @@
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #06b6d4" "borderLeft": "4px solid #06b6d4"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -2,10 +2,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #ef4444" "borderLeft": "4px solid #ef4444"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -2,10 +2,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #10b981" "borderLeft": "4px solid #10b981"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -3,10 +3,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid {% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#8b5cf6{% endif %}" "borderLeft": "4px solid {% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#8b5cf6{% endif %}"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -3,10 +3,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"cursor": "pointer", "cursor": "pointer",
"borderLeft": "4px solid {% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#3b82f6{% endif %}" "borderLeft": "4px solid {% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#3b82f6{% endif %}"
}, },

View File

@ -2,10 +2,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #8b5cf6" "borderLeft": "4px solid #8b5cf6"
}, },
"subwidgets": [ "subwidgets": [

View File

@ -2,10 +2,10 @@
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"css": "stat-card", "css": "stat-card",
"padding": "20px", "padding": "14px",
"borderRadius": "12px", "borderRadius": "12px",
"flex": "1", "flex": "1",
"minHeight": "110px", "minHeight": "90px",
"borderLeft": "4px solid #3b82f6" "borderLeft": "4px solid #3b82f6"
}, },
"subwidgets": [ "subwidgets": [