Skip to content

Commit b80dc50

Browse files
committed
fix: align ContextMenu position in message edit mode
- Remove conditional left positioning (left-6 vs left-0) based on isEditMode - Remove conditional bottom margin (-mb-3 vs mb-2) based on isEditMode - Ensures ContextMenu appears consistently close to the input area in both modes - Fixes issue where ContextMenu was misplaced when editing messages Fixes #8190
1 parent b75ef1d commit b80dc50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,10 +945,10 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
945945
className={cn(
946946
"absolute",
947947
"bottom-full",
948-
isEditMode ? "left-6" : "left-0",
948+
"left-0",
949949
"right-0",
950950
"z-[1000]",
951-
isEditMode ? "-mb-3" : "mb-2",
951+
"mb-2",
952952
"filter",
953953
"drop-shadow-md",
954954
)}>

0 commit comments

Comments
 (0)