GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): audio and server spinners respect reduced motion (#33795) · Pipyakas/t3code@8a984ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components
    • chat
      • ThreadServersPanel.tsx
    • files
      • AudioPreview.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/chat/ThreadServersPanel.tsx
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ import {
1010
isAtomCommandInterrupted,
1111
squashAtomCommandFailure,
1212
} from "@t3tools/client-runtime/state/runtime";
13-
import {
14-
GlobeIcon,
15-
LoaderCircleIcon,
16-
SquareIcon,
17-
ChevronDownIcon,
18-
ChevronUpIcon,
19-
} from "lucide-react";
13+
import { GlobeIcon, SquareIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
2014
import { type MouseEvent, useState } from "react";
2115

2216
import { resolveDiscoveredServerUrl } from "../../browser/browserTargetResolver";
@@ -28,6 +22,7 @@ import { previewEnvironment } from "../../state/preview";
2822
import { useEnvironmentScope } from "../../state/session";
2923
import { useAtomCommand } from "../../state/use-atom-command";
3024
import { openDiscoveredPort } from "../preview/openDiscoveredPort";
25+
import { Spinner } from "../ui/spinner";
3126
import { stackedThreadToast, toastManager } from "../ui/toast";
3227
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
3328
import { ThreadDetailsControl } from "./ThreadDetailsControl";
@@ -170,7 +165,7 @@ function ThreadServersList(props: ThreadServersPanelProps) {
170165
}
171166
>
172167
{stoppingKey === key ? (
173-
<LoaderCircleIcon aria-hidden className="size-3 animate-spin" />
168+
<Spinner aria-hidden size="xs" />
174169
) : (
175170
<SquareIcon aria-hidden className="size-3 fill-current" />
176171
)}
Collapse file

‎apps/web/src/components/files/AudioPreview.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/files/AudioPreview.tsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createContext, useContext, useRef, useState } from "react";
44
import { useStableCallback } from "~/hooks/useStableCallback";
55
import { ContextChip, ContextChipAction, ContextChipLabel } from "../ContextChip";
66
import { middleTruncateAttachmentName } from "../composerInlineChip";
7+
import { Spinner } from "../ui/spinner";
78

89
export const AudioPreviewUnmountContext = createContext<((audio: HTMLAudioElement) => void) | null>(
910
null,
@@ -140,7 +141,7 @@ function AudioChip(props: AudioPreviewProps) {
140141
});
141142
}}
142143
>
143-
<Icon aria-hidden className={loading && props.src ? "animate-spin" : undefined} />
144+
{loading && props.src ? <Spinner aria-hidden /> : <Icon aria-hidden />}
144145
</ContextChipAction>
145146
<ContextChipLabel className={props.variant === "bubble" ? "flex-1" : "max-w-72"}>
146147
{open ? (

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.