Skip to content

Commit 73f0340

Browse files
t3dotggclaude
andcommitted
fix(web): stop the sidebar "Working" label from pulsing
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent a8cd2ad commit 73f0340

2 files changed

Lines changed: 8 additions & 20 deletions

File tree

‎apps/web/src/components/SidebarV2.tsx‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,17 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
502502
? {
503503
label: "Working",
504504
icon: "working" as const,
505-
className:
506-
"animate-sidebar-working-text text-sky-600 motion-reduce:animate-none dark:text-sky-400",
505+
// No shimmer: a label that animates forever is noise in a sidebar
506+
// full of them (and repaints every vsync on high-refresh displays).
507+
// Working is a background state, so it rests at the dim end of what
508+
// the old pulse cycled through; only the thread you have open gets
509+
// the label at full strength.
510+
className: cn("text-sky-600 dark:text-sky-400", !props.isActive && "opacity-75"),
507511
}
508512
: status === "monitoring"
509513
? {
510-
// Steady label, no duty-cycled shimmer: monitoring is calm
511-
// background presence, not active progress (monitoring-pill D6).
514+
// Monitoring is calm background presence, not active progress
515+
// (monitoring-pill D6), so it keeps the label at full strength.
512516
label: "Monitoring",
513517
icon: null,
514518
className: "text-sky-600 dark:text-sky-400",

‎apps/web/src/index.css‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
146146
compositor updates discrete frames instead of every vsync. */
147147
--animate-status-pulse: status-pulse 2s infinite;
148148
--animate-status-ping: status-ping 2s infinite;
149-
--animate-sidebar-working-text: sidebar-working-text 3.4s infinite;
150149
--color-warning-foreground: var(--warning-foreground);
151150
--color-warning: var(--warning);
152151
--color-success-foreground: var(--success-foreground);
@@ -223,21 +222,6 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
223222
scale: 2;
224223
}
225224
}
226-
@keyframes sidebar-working-text {
227-
0%,
228-
36% {
229-
opacity: 1;
230-
animation-timing-function: steps(10);
231-
}
232-
50%,
233-
86% {
234-
opacity: 0.75;
235-
animation-timing-function: steps(10);
236-
}
237-
100% {
238-
opacity: 1;
239-
}
240-
}
241225
}
242226

243227
@layer base {

0 commit comments

Comments
 (0)