From 31080500f097242a3146eaa1140e8132e184c5af Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Mon, 17 Aug 2026 16:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E5=AD=98=E6=8F=90=E7=A4=BA/?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E6=A1=86=E9=9D=A0=E5=B7=A6=E9=87=8D=E5=8F=A0?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=20=E2=80=94=20el-message=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E5=B1=85=E4=B8=AD+=E7=A7=BB=E9=99=A4el-message-box=20margin:0?= =?UTF-8?q?=E7=A0=B4=E5=9D=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/style.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index 8da7f958..e56deb2e 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -344,9 +344,17 @@ html.dark .el-drawer__header { .el-overlay { z-index: 2000 !important; } .el-overlay-dialog { z-index: 2001 !important; position: fixed !important; } .el-message-box__wrapper { z-index: 2002 !important; } -/* 消息提示必须高于弹窗,避免在弹窗内操作时被遮挡;出现在顶栏下方(60px+间距) */ -.el-message { z-index: 3000 !important; top: 70px !important; } -.el-message-box { margin: 0 !important; } +/* 消息提示:置顶居中显示,避开左侧菜单与顶栏(顶栏60px+间距);必须高于弹窗 */ +.el-message { + position: fixed !important; + top: 70px !important; + left: 50% !important; + right: auto !important; + transform: translateX(-50%) !important; + z-index: 3000 !important; + max-width: calc(100vw - 40px) !important; +} +/* el-message-box 保持默认居中(margin:15vh auto),勿清margin否则会靠左重叠菜单 */ .el-dialog { --el-dialog-margin-top: 1vh !important; } /* 过渡动画 — 明暗切换平滑过渡 */