From e1a2b9bc0d4a9060ae0dd732a472beb8854d04f5 Mon Sep 17 00:00:00 2001 From: sikongyue <3155157671@qq.com> Date: Thu, 20 Aug 2026 00:29:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E5=B7=A5=E4=BD=9C=E5=8C=BA?= =?UTF-8?q?=E5=B8=83=E5=B1=80=20-=20=E4=BE=A7=E6=A0=8F=E4=B8=8E=E4=B8=BB?= =?UTF-8?q?=E5=8C=BA=E5=B1=95=E5=BC=80=E8=8F=9C=E5=8D=95=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E9=98=B4=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 侧栏切换器下拉浮层与主区 AntD 下拉/弹出菜单(账户菜单、公告中心)取消阴影,层级改由边框与背景对比表达 --- web/src/components/layout/workspace-sidebar-nav.tsx | 2 +- web/src/styles/globals.css | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/components/layout/workspace-sidebar-nav.tsx b/web/src/components/layout/workspace-sidebar-nav.tsx index 1f824892d..47c3e5622 100644 --- a/web/src/components/layout/workspace-sidebar-nav.tsx +++ b/web/src/components/layout/workspace-sidebar-nav.tsx @@ -111,7 +111,7 @@ function WorkspaceSwitcher({ onNavigate }: { onNavigate: () => void }) { {isOpen ? ( <>
setIsOpen(false)} /> -
+
影策
创作工作台
diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css index c45259230..e80f619ae 100644 --- a/web/src/styles/globals.css +++ b/web/src/styles/globals.css @@ -952,7 +952,7 @@ /* 工作区切换器下拉浮层 */ .app-workspace-nav-popover { - box-shadow: 0 18px 48px color-mix(in srgb, var(--foreground) 12%, transparent), 0 2px 10px color-mix(in srgb, var(--foreground) 6%, transparent); + box-shadow: none; } body.app-spatial-overlays { @@ -1003,6 +1003,11 @@ border-radius: 8px !important; } + /* 展开菜单(下拉/弹出)取消阴影:层级由边框 + 背景对比表达 */ + body.app-spatial-overlays :where(.ant-dropdown-menu, .ant-select-dropdown, .ant-popover-inner, .ant-cascader-menus, .ant-mentions-dropdown) { + box-shadow: none !important; + } + body.app-spatial-overlays :where( .ant-dropdown-menu-item:not(.ant-dropdown-menu-item-disabled), .ant-dropdown-menu-submenu-title:not(.ant-dropdown-menu-item-disabled),