From 0fa7df5e2ae7ba331ee26d50066cb991d6502a17 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Tue, 15 Apr 2025 18:32:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=88=AA=E6=A0=8F=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=9E=82=E7=9B=B4=E5=B1=85=E4=B8=AD=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E9=97=AE=E9=A2=98=E5=8F=8A=E9=A1=B6=E9=83=A8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E9=80=9A=E7=9F=A5=E5=9B=BE=E6=A0=87=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/NavBar/components/NavbarRight.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index 8d15aa01..10c6606d 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -107,10 +107,11 @@ function logout() { justify-content: center; & > * { - display: inline-block; + display: flex; + align-items: center; + justify-content: center; min-width: 40px; height: $navbar-height; - line-height: $navbar-height; color: var(--el-text-color); text-align: center; cursor: pointer; @@ -141,6 +142,12 @@ function logout() { .layout-top .navbar__right--white > *, .layout-mix .navbar__right--white > * { color: #fff; + + // 强制所有svg图标为白色(包括通知图标) + :deep(svg) { + color: #fff; + fill: #fff; + } } .dark .navbar__right > *:hover {