【已审核】fix(file-chip): 右键菜单 z-index 提升到 z-[9999] 避免被终端暗色主题覆盖层遮挡#1027
Merged
ErlichLiu merged 1 commit intoJul 5, 2026
Merged
Conversation
FilePathChip 的 ContextMenuContent 用默认 z-50,被 theme-terminal-dark 主题的 body::before(z-100,CRT 扫描线)/body::after(z-100,暗角)覆盖层 盖住,导致右键菜单看不见。与 LeftSidebar 中已生效的 ContextMenuContent 保持一致,显式 z-[9999] 越过覆盖层。
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.
概述
修复 FilePathChip 右键菜单被终端暗色主题(
theme-terminal-dark)覆盖层遮挡的问题。原ContextMenuContent用默认z-50,被该主题body::before(CRT 扫描线,z-100)/body::after(暗角,z-100)覆盖层盖住,导致右键菜单看不见或只能看到一部分。改动
apps/electron/src/renderer/components/ai-elements/file-path-chip.tsx(+1/-1)ContextMenuContent显式提升z-index到z-[9999],越过终端主题的z-100覆盖层LeftSidebar中已生效的ContextMenuContent保持一致测试
bun run typecheck通过bun run dev启动应用theme-terminal-dark)紧急度
低
备注
Closes #1015