From 38ce3f414e0d60fba15e0c78f77eb16fe49b1274 Mon Sep 17 00:00:00 2001 From: std-external <201375710+std-external@users.noreply.github.com> Date: Fri, 27 Nov 2026 20:36:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20Fluent=20=E4=B8=8B=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=BC=B9=E5=B1=82=E4=B8=8D=E5=86=8D=E8=A2=AB=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9B=96=E4=BD=8F=20(#111)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fluent 主题给命令栏(.filter/.manage-toolbar/.keybindings-toolbar)加了 backdrop-filter,命令栏因此自成一个 stacking context,栏内弹层的 z-index 只在这一层里比较,于是被后面 position: relative 的列表整块压住。 Vanilla 与 Material You 的命令栏没有这层滤镜,所以只有 Fluent 复现。 给这条规则补 position: relative + z-index: 1,把整条命令栏抬到列表之上; Manage 与按键页的筛选弹层同源同修。 --- src/celemod-ui/src/styles/themes/fluent/_pages.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/celemod-ui/src/styles/themes/fluent/_pages.scss b/src/celemod-ui/src/styles/themes/fluent/_pages.scss index 9aa45a51..c88f4c1a 100644 --- a/src/celemod-ui/src/styles/themes/fluent/_pages.scss +++ b/src/celemod-ui/src/styles/themes/fluent/_pages.scss @@ -102,6 +102,10 @@ html[data-theme="fluent"] .home-page { html[data-theme="fluent"] .filter, html[data-theme="fluent"] .manage-toolbar, html[data-theme="fluent"] .keybindings-toolbar { + /* backdrop-filter 让命令栏自己成为 stacking context,栏内弹层的 z-index + 于是只在栏内生效,被后面 position: relative 的列表盖住;把整条命令栏抬到列表之上 */ + position: relative; + z-index: 1; border-bottom-color: var(--fluent-stroke-divider); background: color-mix(in srgb, var(--fluent-mica-alt) 82%, transparent); backdrop-filter: blur(18px) saturate(120%);