@@ -950,18 +950,6 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
950
950
onScroll = { ( ) => updateHighlights ( ) }
951
951
/>
952
952
953
- { isTtsPlaying && (
954
- < StandardTooltip content = { t ( "chat:stopTts" ) } >
955
- < Button
956
- variant = "ghost"
957
- size = "icon"
958
- className = "absolute top-0 right-0 opacity-25 hover:opacity-100 z-10"
959
- onClick = { ( ) => vscode . postMessage ( { type : "stopTts" } ) } >
960
- < VolumeX className = "size-4" />
961
- </ Button >
962
- </ StandardTooltip >
963
- ) }
964
-
965
953
< div className = "absolute top-1 right-1 z-30" >
966
954
< StandardTooltip content = { t ( "chat:enhancePrompt" ) } >
967
955
< button
@@ -1173,6 +1161,26 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
1173
1161
</ div >
1174
1162
1175
1163
< div className = { cn ( "flex" , "items-center" , "gap-0.5" , "shrink-0" ) } >
1164
+ { isTtsPlaying && (
1165
+ < StandardTooltip content = { t ( "chat:stopTts" ) } >
1166
+ < button
1167
+ aria-label = { t ( "chat:stopTts" ) }
1168
+ onClick = { ( ) => vscode . postMessage ( { type : "stopTts" } ) }
1169
+ className = { cn (
1170
+ "relative inline-flex items-center justify-center" ,
1171
+ "bg-transparent border-none p-1.5" ,
1172
+ "rounded-md min-w-[28px] min-h-[28px]" ,
1173
+ "text-vscode-foreground opacity-85" ,
1174
+ "transition-all duration-150" ,
1175
+ "hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)]" ,
1176
+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder" ,
1177
+ "active:bg-[rgba(255,255,255,0.1)]" ,
1178
+ "cursor-pointer" ,
1179
+ ) } >
1180
+ < VolumeX className = "w-4 h-4" />
1181
+ </ button >
1182
+ </ StandardTooltip >
1183
+ ) }
1176
1184
< IndexingStatusBadge />
1177
1185
< StandardTooltip content = { t ( "chat:addImages" ) } >
1178
1186
< button
0 commit comments