mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Update ChatTextArea.tsx (#5586)
* Update ChatTextArea.tsx fix issue 5583 * refactor(ui): move TTS stop button to bottom control bar --------- Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
This commit is contained in:
parent
50598b22b5
commit
406b366f4a
1 changed files with 20 additions and 12 deletions
|
|
@ -950,18 +950,6 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
||||||
onScroll={() => updateHighlights()}
|
onScroll={() => updateHighlights()}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{isTtsPlaying && (
|
|
||||||
<StandardTooltip content={t("chat:stopTts")}>
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
size="icon"
|
|
||||||
className="absolute top-0 right-0 opacity-25 hover:opacity-100 z-10"
|
|
||||||
onClick={() => vscode.postMessage({ type: "stopTts" })}>
|
|
||||||
<VolumeX className="size-4" />
|
|
||||||
</Button>
|
|
||||||
</StandardTooltip>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="absolute top-1 right-1 z-30">
|
<div className="absolute top-1 right-1 z-30">
|
||||||
<StandardTooltip content={t("chat:enhancePrompt")}>
|
<StandardTooltip content={t("chat:enhancePrompt")}>
|
||||||
<button
|
<button
|
||||||
|
|
@ -1173,6 +1161,26 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={cn("flex", "items-center", "gap-0.5", "shrink-0")}>
|
<div className={cn("flex", "items-center", "gap-0.5", "shrink-0")}>
|
||||||
|
{isTtsPlaying && (
|
||||||
|
<StandardTooltip content={t("chat:stopTts")}>
|
||||||
|
<button
|
||||||
|
aria-label={t("chat:stopTts")}
|
||||||
|
onClick={() => vscode.postMessage({ type: "stopTts" })}
|
||||||
|
className={cn(
|
||||||
|
"relative inline-flex items-center justify-center",
|
||||||
|
"bg-transparent border-none p-1.5",
|
||||||
|
"rounded-md min-w-[28px] min-h-[28px]",
|
||||||
|
"text-vscode-foreground opacity-85",
|
||||||
|
"transition-all duration-150",
|
||||||
|
"hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)]",
|
||||||
|
"focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder",
|
||||||
|
"active:bg-[rgba(255,255,255,0.1)]",
|
||||||
|
"cursor-pointer",
|
||||||
|
)}>
|
||||||
|
<VolumeX className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
</StandardTooltip>
|
||||||
|
)}
|
||||||
<IndexingStatusBadge />
|
<IndexingStatusBadge />
|
||||||
<StandardTooltip content={t("chat:addImages")}>
|
<StandardTooltip content={t("chat:addImages")}>
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue