From 9eb643b56f39bb7d1d0d4e0b842e0ba2087ab2d1 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 9 Mar 2026 11:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=A6=96=E9=A1=B5=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E5=BC=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/index.html | 161 +++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/admin/dashboard/templates/index.html b/admin/dashboard/templates/index.html index 6ad15d2..4fdbcef 100644 --- a/admin/dashboard/templates/index.html +++ b/admin/dashboard/templates/index.html @@ -748,6 +748,16 @@ margin-bottom: 18px; } + .dashboard-page .el-row { + margin-left: 0 !important; + margin-right: 0 !important; + } + + .dashboard-page .el-row > .el-col { + padding-left: 8px !important; + padding-right: 8px !important; + } + .dashboard-title-actions { display: flex; align-items: center; @@ -1040,5 +1050,156 @@ .hero-empty i { font-size: 24px; } + + @media (max-width: 1200px) { + .hero-row > .el-col, + .stats-highlight-row > .el-col, + .chart-row > .el-col { + width: 100% !important; + } + + .metric-grid > .el-col { + width: 50% !important; + } + } + + @media (max-width: 900px) { + .dashboard-title { + flex-direction: column; + align-items: flex-start; + } + + .hero-row, + .stats-highlight-row, + .chart-row { + margin-bottom: 12px; + } + + .hero-profile-top { + flex-direction: column; + align-items: flex-start; + } + + .hero-profile-meta { + grid-template-columns: 1fr; + } + + .chart-card-header, + .chart-card-header--split, + .section-heading { + flex-direction: column; + align-items: flex-start; + } + + .chart-toolbar { + width: 100%; + } + + .chart-toolbar .el-select { + width: 100% !important; + } + + .metric-grid > .el-col { + width: 100% !important; + } + } + + @media (max-width: 768px) { + .dashboard-page { + overflow-x: hidden; + } + + .dashboard-title { + margin-bottom: 14px; + } + + .page-title-main h1, + .page-title-main h2 { + font-size: 22px; + } + + .page-title-main p { + font-size: 13px; + } + + .live-badge { + width: 100%; + justify-content: center; + } + + .hero-card, + .chart-card, + .insight-card, + .metric-card { + min-height: auto; + } + + .hero-card--profile .el-card__body, + .metric-card .el-card__body { + padding: 16px !important; + } + + .hero-avatar-wrap { + width: 64px; + height: 64px; + } + + .hero-profile-copy h2 { + font-size: 20px; + } + + .metric-value { + font-size: 24px; + } + + .chart-container--large, + .chart-container--panel { + height: 260px; + } + + .rank-cell { + align-items: flex-start; + } + + .rank-title, + .rank-subtitle { + white-space: normal; + } + + .el-table { + font-size: 12px; + } + } + + @media (max-width: 480px) { + .dashboard-page .el-row > .el-col { + padding-left: 0 !important; + padding-right: 0 !important; + } + + .hero-row, + .stats-highlight-row, + .chart-row { + margin-bottom: 10px; + } + + .hero-card--profile .el-card__body, + .metric-card .el-card__body, + .insight-card .el-card__body { + padding: 14px !important; + } + + .metric-label, + .metric-footnote, + .section-heading p, + .chart-card-header p { + font-size: 12px; + } + + .chart-container--large, + .chart-container--panel { + height: 220px; + } + } {% endblock %}