@@ -943,10 +943,11 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
943943 "resize-none" ,
944944 "overflow-x-hidden" ,
945945 "overflow-y-auto" ,
946- "pr-2 " ,
946+ "pr-9 " ,
947947 "flex-none flex-grow" ,
948948 "z-[2]" ,
949949 "scrollbar-none" ,
950+ "scrollbar-hide" ,
950951 ) }
951952 onScroll = { ( ) => updateHighlights ( ) }
952953 />
@@ -961,24 +962,31 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
961962 </ Button >
962963 ) }
963964
965+ < div className = "absolute top-1 right-1 z-30" >
966+ < IconButton
967+ iconClass = { isEnhancingPrompt ? "codicon-loading" : "codicon-sparkle" }
968+ title = { t ( "chat:enhancePrompt" ) }
969+ disabled = { sendingDisabled }
970+ isLoading = { isEnhancingPrompt }
971+ onClick = { handleEnhancePrompt }
972+ className = "opacity-60 hover:opacity-100 text-vscode-descriptionForeground hover:text-vscode-foreground"
973+ />
974+ </ div >
975+
976+ < div className = "absolute bottom-1 right-1 z-30" >
977+ < IconButton
978+ iconClass = "codicon-send"
979+ title = { t ( "chat:sendMessage" ) }
980+ disabled = { sendingDisabled }
981+ onClick = { onSend }
982+ className = "opacity-60 hover:opacity-100 text-vscode-descriptionForeground hover:text-vscode-foreground"
983+ />
984+ </ div >
985+
964986 { ! inputValue && (
965987 < div
966- className = { cn (
967- "absolute" ,
968- "left-2" ,
969- "flex" ,
970- "gap-2" ,
971- "text-xs" ,
972- "text-descriptionForeground" ,
973- "pointer-events-none" ,
974- "z-25" ,
975- "bottom-1.5" ,
976- "pr-2" ,
977- "transition-opacity" ,
978- "duration-200" ,
979- "ease-in-out" ,
980- "opacity-70" ,
981- ) } >
988+ className = "absolute left-2 z-30 pr-9 flex items-center h-8"
989+ style = { { bottom : "0.25rem" , color : "var(--vscode-tab-inactiveForeground)" } } >
982990 { placeholderBottomText }
983991 </ div >
984992 ) }
@@ -1134,25 +1142,12 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11341142
11351143 < div className = { cn ( "flex" , "items-center" , "gap-0.5" , "shrink-0" ) } >
11361144 { codebaseIndexConfig ?. codebaseIndexEnabled && < IndexingStatusDot /> }
1137- < IconButton
1138- iconClass = { isEnhancingPrompt ? "codicon-loading" : "codicon-sparkle" }
1139- title = { t ( "chat:enhancePrompt" ) }
1140- disabled = { sendingDisabled }
1141- isLoading = { isEnhancingPrompt }
1142- onClick = { handleEnhancePrompt }
1143- />
11441145 < IconButton
11451146 iconClass = "codicon-device-camera"
11461147 title = { t ( "chat:addImages" ) }
11471148 disabled = { shouldDisableImages }
11481149 onClick = { onSelectImages }
11491150 />
1150- < IconButton
1151- iconClass = "codicon-send"
1152- title = { t ( "chat:sendMessage" ) }
1153- disabled = { sendingDisabled }
1154- onClick = { onSend }
1155- />
11561151 </ div >
11571152 </ div >
11581153 </ div >
0 commit comments