Skip to content

Commit 3d5baaf

Browse files
saphidmaria-rcks
andauthored
fix(web): respect reduced motion in thread loading controls (pingdotgg#22100)
Co-authored-by: SAPHID <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent b4da896 commit 3d5baaf

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
@@ -49,7 +49,6 @@ import {
4949
ChevronDownIcon,
5050
CornerLeftUpIcon,
5151
GitForkIcon,
52-
LoaderCircleIcon,
5352
MoreHorizontalIcon,
5453
PlusIcon,
5554
SquareIcon,
@@ -76,6 +75,7 @@ import { ThreadLineageWorkflowRow } from "./ThreadLineageWorkflowRow";
7675
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
7776
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
7877
import { toastManager } from "../ui/toast";
78+
import { Spinner } from "../ui/spinner";
7979
import { cn } from "~/lib/utils";
8080
import {
8181
THREAD_DETAILS_PANEL_CHEVRON_CLASS,
@@ -802,7 +802,7 @@ export function ThreadRelationshipsPanel(props: {
802802
onClick={() => void merge()}
803803
>
804804
{busyAction === "merge" ? (
805-
<LoaderCircleIcon className="size-3 animate-spin" />
805+
<Spinner size="xs" />
806806
) : (
807807
<PullRequestGlyph.merged className="size-3" />
808808
)}
@@ -841,7 +841,7 @@ export function ThreadRelationshipsPanel(props: {
841841
}
842842
>
843843
{stoppingId === threadId ? (
844-
<LoaderCircleIcon aria-hidden className="size-3 animate-spin" />
844+
<Spinner aria-hidden size="xs" />
845845
) : (
846846
<SquareIcon aria-hidden className="size-3 fill-current" />
847847
)}

0 commit comments

Comments
 (0)