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",
"options": {
"height": "250px",
"height": "210px",
"width": "100%",
"data_url": "{{entire_url('api/top_models.dspy')}}",
"nameField": "model_name",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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