Skip to content

Commit 13d4633

Browse files
committed
fix(web): respect reduced motion in thread loading controls
1 parent a3ca1a5 commit 13d4633

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎apps/web/src/components/chat/ThreadLineageWorkflowRow.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
RuntimeSubagent,
44
} from "@t3tools/client-runtime/state/subagentRuntime";
55
import type { ProviderDriverKind, ProviderInstanceId, ServerProvider } from "@t3tools/contracts";
6-
import { ChevronDownIcon, LoaderCircleIcon, SquareIcon } from "lucide-react";
6+
import { ChevronDownIcon, SquareIcon } from "lucide-react";
77
import { useState, type ReactNode } from "react";
88

99
import { AgentElapsed } from "./AgentElapsed";
@@ -14,6 +14,7 @@ import { cn } from "../../lib/utils";
1414
import { ThreadDetailsControl } from "./ThreadDetailsControl";
1515
import { CollapsibleSectionHeader, SectionHeaderStatus } from "../ui/collapsible-section-header";
1616
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
17+
import { Spinner } from "../ui/spinner";
1718
import {
1819
THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS,
1920
THREAD_DETAILS_PANEL_SPLIT_SEPARATOR_CLASS,
@@ -158,7 +159,7 @@ export function ThreadLineageWorkflowRow({
158159
}
159160
>
160161
{stopping ? (
161-
<LoaderCircleIcon aria-hidden className="size-3 animate-spin" />
162+
<Spinner aria-hidden size="xs" />
162163
) : (
163164
<SquareIcon aria-hidden className="size-3 fill-current" />
164165
)}

‎apps/web/src/components/chat/ThreadRelationshipsControl.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import {
4444
BotIcon,
4545
CornerLeftUpIcon,
4646
GitForkIcon,
47-
LoaderCircleIcon,
4847
MoreHorizontalIcon,
4948
PlusIcon,
5049
SquareIcon,
@@ -70,6 +69,7 @@ import { ThreadLineageWorkflowRow } from "./ThreadLineageWorkflowRow";
7069
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
7170
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
7271
import { toastManager } from "../ui/toast";
72+
import { Spinner } from "../ui/spinner";
7373
import {
7474
THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS,
7575
THREAD_DETAILS_PANEL_ROW_CONTENT_CLASS,
@@ -637,7 +637,7 @@ export function ThreadRelationshipsPanel(props: {
637637
onClick={() => void merge()}
638638
>
639639
{busyAction === "merge" ? (
640-
<LoaderCircleIcon className="size-3 animate-spin" />
640+
<Spinner size="xs" />
641641
) : (
642642
<PullRequestGlyph.merged className="size-3" />
643643
)}
@@ -676,7 +676,7 @@ export function ThreadRelationshipsPanel(props: {
676676
}
677677
>
678678
{stoppingId === threadId ? (
679-
<LoaderCircleIcon aria-hidden className="size-3 animate-spin" />
679+
<Spinner aria-hidden size="xs" />
680680
) : (
681681
<SquareIcon aria-hidden className="size-3 fill-current" />
682682
)}

0 commit comments

Comments
 (0)