Repository navigation
fix(ui): Fluent 下筛选弹层不再被列表盖住 (#111) - #112
Merged
std-microblock merged 1 commit intoNov 30, 2026
Merged
std-microblock merged 1 commit into
std-microblock merged 1 commit into
Conversation
Fluent 主题给命令栏(.filter/.manage-toolbar/.keybindings-toolbar)加了 backdrop-filter,命令栏因此自成一个 stacking context,栏内弹层的 z-index 只在这一层里比较,于是被后面 position: relative 的列表整块压住。 Vanilla 与 Material You 的命令栏没有这层滤镜,所以只有 Fluent 复现。 给这条规则补 position: relative + z-index: 1,把整条命令栏抬到列表之上; Manage 与按键页的筛选弹层同源同修。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修 #111。
现象
Fluent Design 主题下打开筛选(
F按钮),弹层被下方 Mod 列表整块盖住,列表里的下载/更多按钮和行内容都压在弹层上面;Vanilla 与 Material You 正常。成因
Fluent 的样式给命令栏
.filter/.manage-toolbar/.keybindings-toolbar加了backdrop-filter: blur(18px) …(styles/themes/fluent/_pages.scss)。backdrop-filter会让元素自己成为一个 stacking context,于是栏内.filter-popup的z-index: 50只在这一层里比较;而列表.mod-list-shell是position: relative、z-index: auto,在父级里排在命令栏之后,整块把命令栏这个 stacking context(连弹层)压过去了。Vanilla / Material You 的命令栏没有这层滤镜,弹层的
z-index: 50直接参与外层堆叠,所以只有 Fluent 复现。改法
给同一条规则补两行:
把整条命令栏抬到列表之上。弹层在栏内的
z-index保持不变,列表自身的滚动/裁剪不受影响。同一条规则同时覆盖 Manage 与按键页,它们的筛选弹层是同一个根因,一并修好。验证
用仓库真实 SCSS(
index.scss+Search.scss+ModList.scss)编译出 CSS,在 chromium 里按同样的 DOM 结构跑 before/after:(对比图放在
evidence/111分支上,仅供本 PR 展示,不随改动合入。)影响面
只动 Fluent 主题的命令栏堆叠层级,另两个主题的选择器不变;无 JS 逻辑改动。