Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Balance menu: a line's bar moves with the motion tokens

Adarshc83d3ec657a5
diff --git a/src/components/nav/status-chips.tsx b/src/components/nav/status-chips.tsx
index e97b2fc2..c78895b2 100644
--- a/src/components/nav/status-chips.tsx
+++ b/src/components/nav/status-chips.tsx
@@ -170,7 +170,7 @@ function BalanceLine({ row }: { row: BalanceRow }) {
</div>
{bar !== null && (
<div role="meter" aria-valuemin={0} aria-valuemax={100} aria-valuenow={bar} aria-label={`${row.label}: ${row.text}`} className="h-1.5 overflow-hidden rounded-full bg-muted">
- <div className={cn("h-full rounded-full motion-safe:transition-[width] motion-safe:duration-500", TONE_BAR[tone])} style={{ width: `${bar > 0 ? Math.max(3, bar) : 0}%` }} />
+ <div className={cn("h-full rounded-full origin-left motion-safe:transition-transform duration-(--motion-slow) ease-standard", TONE_BAR[tone])} style={{ transform: `scaleX(${(bar > 0 ? Math.max(3, bar) : 0) / 100})` }} />
</div>
)}
{/* eslint-disable-next-line @next/next/no-img-element -- a small picture the service sends, a path on this site */}