Skip to content

Commit c3d9ff0

Browse files
committed
refactor(chat): use vscode loading for more consistency
1 parent 4ab3e2d commit c3d9ff0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

webview-ui/src/components/common/CodeAccordian.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { memo, useMemo } from "react"
22
import { getLanguageFromPath } from "@src/utils/getLanguageFromPath"
33
import CodeBlock, { CODE_BLOCK_BG_COLOR } from "./CodeBlock"
44
import { ToolProgressStatus } from "@roo/shared/ExtensionMessage"
5+
import { VSCodeProgressRing } from "@vscode/webview-ui-toolkit/react"
56

67
interface CodeAccordianProps {
78
code?: string
@@ -71,11 +72,7 @@ const CodeAccordian = ({
7172
}}
7273
className={`${isLoading ? "animate-pulse" : ""}`}
7374
onClick={isLoading ? undefined : onToggleExpand}>
74-
{isLoading && (
75-
<div className="flex items-center">
76-
<span className="codicon codicon-loading animate-spin mr-1" aria-label="Loading" role="status" />
77-
</div>
78-
)}
75+
{isLoading && <VSCodeProgressRing className="size-3 mr-2" />}
7976
{isFeedback || isConsoleLogs ? (
8077
<div style={{ display: "flex", alignItems: "center" }}>
8178
<span

0 commit comments

Comments
 (0)