-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix: increase z-index of context menu to prevent UI obstruction #7760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -268,7 +268,7 @@ const ContextMenu: React.FC<ContextMenuProps> = ({ | |
| border: "1px solid var(--vscode-editorGroup-border)", | ||
| borderRadius: "3px", | ||
| boxShadow: "0 4px 10px rgba(0, 0, 0, 0.25)", | ||
| zIndex: 1000, | ||
| zIndex: 10001, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The jump from z-index 1000 to 10001 seems quite large. Looking at the codebase, modals use , so this context menu at 10001 is 10x higher. Could we consider establishing a more structured z-index scale? For example:
This would make the hierarchy clearer and prevent future conflicts. |
||
| display: "flex", | ||
| flexDirection: "column", | ||
| maxHeight: "300px", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice we're using Tailwind class here, but in ContextMenu.tsx we're using inline style . Should we consider using a consistent approach across both files? Tailwind classes would be preferable for maintainability.