From bd7d0d1e96a607cbb85370d3252cec92c09f2104 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 2 Feb 2025 14:00:40 +0800 Subject: [PATCH] chore: update default theme style --- web/default/src/components/Header.js | 16 +++++- web/default/src/index.css | 82 ++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 2 deletions(-) diff --git a/web/default/src/components/Header.js b/web/default/src/components/Header.js index 70db5b07..5379b6a1 100644 --- a/web/default/src/components/Header.js +++ b/web/default/src/components/Header.js @@ -165,7 +165,13 @@ const Header = () => { : { borderTop: 'none', height: '52px' } } > - + logo
@@ -236,7 +242,13 @@ const Header = () => { border: 'none', }} > - + logo
.card { + margin: 0.5em !important; + width: calc(50% - 1em) !important; + } +} + +/* 大屏幕 */ +@media screen and (min-width: 1367px) { + .ui.container { + width: 1200px !important; + margin-left: auto !important; + margin-right: auto !important; + padding: 0 !important; + } +} + +/* 优化 Dashboard 网格布局 */ +@media screen and (max-width: 1366px) { + .charts-grid { + margin: 0 -0.5em !important; + } + + .charts-grid .column { + padding: 0.5em !important; + } + + .chart-card { + margin: 0 !important; + } + + /* 调整字体大小 */ + .ui.header { + font-size: 1.1em !important; + } + + .stat-value { + font-size: 0.9em !important; + } +}