From b858a115f8a44a2b79734f4fad4fe97963df93cc Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 20 Mar 2026 22:28:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=AB=98=E7=89=B9=E5=BC=82=E6=80=A7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=9C=86=E5=BD=A2=E8=83=8C=E6=99=AF+=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E7=AD=89=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .dashboard .stats-group .stat-item i.ph 覆盖全局 i{display:inline} - display: inline-flex 确保 width/height 生效 - .row-3 > .card-sidebar 添加 min-height:100% 强制等高 --- clientarea/home/hgcloud_home/css/home.css | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/clientarea/home/hgcloud_home/css/home.css b/clientarea/home/hgcloud_home/css/home.css index 39b5536..dee0d69 100644 --- a/clientarea/home/hgcloud_home/css/home.css +++ b/clientarea/home/hgcloud_home/css/home.css @@ -107,12 +107,21 @@ .stat-item:hover { background: var(--surface-hover); } .stat-item:active { transform: scale(0.97); } -/* 圆形图标背景 */ -.stat-item i { - width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; - border-radius: 50%; flex-shrink: 0 !important; - display: flex !important; align-items: center !important; justify-content: center !important; - font-size: 18px; +/* 圆形图标背景 — 高特异性覆盖全局 i{display:inline} */ +.dashboard .stats-group .stat-item i.ph { + width: 36px !important; height: 36px !important; + min-width: 36px !important; min-height: 36px !important; + border-radius: 50% !important; flex-shrink: 0 !important; + display: inline-flex !important; align-items: center !important; justify-content: center !important; + font-size: 18px !important; line-height: 1 !important; +} +/* 兜底:任何 .stat-item 下的 i 标签 */ +.stat-item > i { + width: 36px !important; height: 36px !important; + min-width: 36px !important; min-height: 36px !important; + border-radius: 50% !important; flex-shrink: 0 !important; + display: inline-flex !important; align-items: center !important; justify-content: center !important; + font-size: 18px !important; line-height: 1 !important; } .stat-value { font-size: 24px; font-weight: 700; line-height: 1; @@ -254,6 +263,7 @@ .empty-state .el-button { padding: 8px 22px; font-size: 14px; border: none; background: var(--accent); color: #fff; border-radius: 999px; } /* 侧栏 35% — 与产品卡等高 */ +.row-3 > .card-sidebar, .card-sidebar { flex: 2 !important; min-width: 0 !important; @@ -262,6 +272,8 @@ flex-direction: column !important; gap: 20px !important; align-self: stretch !important; + height: auto !important; + min-height: 100% !important; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .sidebar-header > span:first-child { font-size: 14px; font-weight: 600; color: var(--text-primary); }