Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion webview-ui/src/components/chat/ChatTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,12 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
{!inputValue && (
<div
className="absolute left-2 z-30 pr-9 flex items-center h-8"
style={{ bottom: "0.25rem", color: "var(--vscode-tab-inactiveForeground)" }}>
style={{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline style for the placeholder now includes userSelect: 'none' and pointerEvents: 'none' to make it non-selectable. For consistency with the rest of the project (which uses Tailwind classes), consider using Tailwind utilities like select-none and pointer-events-none if feasible.

bottom: "0.25rem",
color: "var(--vscode-tab-inactiveForeground)",
userSelect: "none",
pointerEvents: "none",
}}>
{placeholderBottomText}
</div>
)}
Expand Down Expand Up @@ -1147,6 +1152,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
title={t("chat:addImages")}
disabled={shouldDisableImages}
onClick={onSelectImages}
className="mr-1"
/>
</div>
</div>
Expand Down
Loading