Skip to content

Commit ffc63fb

Browse files
committed
fix: increase z-index of context menu to prevent UI obstruction
- Changed z-index from 1000 to 10001 in ChatTextArea.tsx - Changed z-index from 1000 to 10001 in ContextMenu.tsx - This ensures the @ mention dropdown appears above other UI elements - Fixes #7759
1 parent 247da38 commit ffc63fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
954954
"bottom-full",
955955
"left-0",
956956
"right-0",
957-
"z-[1000]",
957+
"z-[10001]",
958958
"mb-2",
959959
"filter",
960960
"drop-shadow-md",

webview-ui/src/components/chat/ContextMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
268268
border: "1px solid var(--vscode-editorGroup-border)",
269269
borderRadius: "3px",
270270
boxShadow: "0 4px 10px rgba(0, 0, 0, 0.25)",
271-
zIndex: 1000,
271+
zIndex: 10001,
272272
display: "flex",
273273
flexDirection: "column",
274274
maxHeight: "300px",

0 commit comments

Comments
 (0)