Skip to content

Commit 2ed74f9

Browse files
committed
fix: Add VSCode progress ring component to HumanRelayDialog instead of reusing RowChat
1 parent 1d1cf54 commit 2ed74f9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

webview-ui/src/components/human-relay/HumanRelayDialog.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from "react"
2+
import { VSCodeProgressRing } from "@vscode/webview-ui-toolkit/react"
23
import { Button } from "../ui/button"
34
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../ui/dialog"
45
import { Textarea } from "../ui/textarea"
56
import { useClipboard } from "../ui/hooks"
67
import { AlertTriangle, Check, Copy, Power, X } from "lucide-react"
78
import { useState as useReactState } from "react"
8-
import { ProgressIndicator } from "../chat/ChatRow"
99
import { vscode } from "../../utils/vscode"
1010

1111
interface HumanRelayDialogProps {
@@ -184,3 +184,17 @@ export const HumanRelayDialog: React.FC<HumanRelayDialogProps> = ({
184184
</Dialog>
185185
)
186186
}
187+
const ProgressIndicator = () => (
188+
<div
189+
style={{
190+
width: "16px",
191+
height: "16px",
192+
display: "flex",
193+
alignItems: "center",
194+
justifyContent: "center",
195+
}}>
196+
<div style={{ transform: "scale(0.55)", transformOrigin: "center" }}>
197+
<VSCodeProgressRing />
198+
</div>
199+
</div>
200+
)

0 commit comments

Comments
 (0)