From 0c8106c1c799dbd2ce4759b1b094e319423770b0 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 20 Mar 2026 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B6=E6=A0=8F=E5=9C=86=E5=BD=A2?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=B0=B4=E5=B9=B3=E5=AF=B9=E9=BD=90+?= =?UTF-8?q?=E5=9B=BD=E6=97=97=E5=AE=8C=E6=95=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - header-right: flex + align-items:center + gap:12px - 所有按钮: min-width/min-height:36px + box-sizing - 国旗: overflow:visible, 24x18矩形圆角, 不再被裁切 - margin全部归零, 由gap统一控制间距 --- clientarea/hgcloud/css/dark-override.css | 42 +++++++++++++++++++----- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/clientarea/hgcloud/css/dark-override.css b/clientarea/hgcloud/css/dark-override.css index 8f7353f..b30d26e 100644 --- a/clientarea/hgcloud/css/dark-override.css +++ b/clientarea/hgcloud/css/dark-override.css @@ -141,11 +141,26 @@ html, body { width: auto; } +/* ============ 顶栏右侧 — 统一对齐 ============ */ +.header-right { + display: flex !important; + align-items: center !important; + gap: 12px !important; + margin-right: 20px !important; +} + +.header-right .header-right-item { + display: flex !important; + align-items: center !important; +} + /* ============ 顶栏右侧按钮 — 纯圆形 ============ */ /* 购物车按钮 */ .header-right .header-right-item .right-item { width: 36px !important; height: 36px !important; + min-width: 36px !important; + min-height: 36px !important; background: rgba(255, 255, 255, 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.8) !important; border-radius: 50% !important; @@ -157,6 +172,7 @@ html, body { -webkit-backdrop-filter: blur(8px) !important; transition: all 0.2s ease !important; cursor: pointer !important; + box-sizing: border-box !important; } .header-right .header-right-item .right-item:hover { @@ -168,6 +184,8 @@ html, body { .header-right .header-right-item .el-dropdown-country { width: 36px !important; height: 36px !important; + min-width: 36px !important; + min-height: 36px !important; background: rgba(255, 255, 255, 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.8) !important; border-radius: 50% !important; @@ -178,7 +196,8 @@ html, body { backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; transition: all 0.2s ease !important; - overflow: hidden !important; + overflow: visible !important; + box-sizing: border-box !important; } .header-right .header-right-item .el-dropdown-country:hover { @@ -186,15 +205,16 @@ html, body { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; } -/* 国旗图标 */ +/* 国旗图标 — 完整显示 */ .header-right .header-right-item .el-dropdown-country img { - width: 20px !important; - height: 20px !important; - border-radius: 50% !important; + width: 24px !important; + height: 18px !important; + border-radius: 3px !important; object-fit: cover !important; + flex-shrink: 0 !important; } -/* 隐藏国旗下拉箭头(纯圆形内不需要箭头) */ +/* 隐藏国旗下拉箭头 */ .header-right .header-right-item .el-dropdown-country .right-icon { display: none !important; } @@ -203,6 +223,8 @@ html, body { .header-right .header-right-item .el-dropdown-header { width: 36px !important; height: 36px !important; + min-width: 36px !important; + min-height: 36px !important; background: rgba(255, 255, 255, 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.8) !important; border-radius: 50% !important; @@ -214,6 +236,7 @@ html, body { -webkit-backdrop-filter: blur(8px) !important; transition: all 0.2s ease !important; overflow: hidden !important; + box-sizing: border-box !important; } .header-right .header-right-item .el-dropdown-header:hover { @@ -241,14 +264,15 @@ html, body { display: none !important; } -/* 按钮间距统一 */ +/* 按钮间距统一(由 gap: 12px 控制) */ .header-right .car-item { - margin-right: 12px !important; + margin-right: 0 !important; + margin-left: 0 !important; } .header-right .cloum-line-item { margin-left: 0 !important; - margin-right: 12px !important; + margin-right: 0 !important; } .ali-logo {