Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export const WorkspaceRunButton = memo(function WorkspaceRunButton({
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
"active:scale-[0.98]",
isPending && "opacity-50 pointer-events-none",
isRunning
? "text-emerald-300 border-emerald-500/25 bg-emerald-500/10 hover:bg-emerald-500/20"
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: In the running state, hover will still apply hover:text-foreground from the base classes, so the chevron text turns default on hover instead of staying emerald. Add a running-state hover text override to keep the colors consistent with the left button.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/TopBar/components/WorkspaceRunButton/WorkspaceRunButton.tsx, line 146:

<comment>In the running state, hover will still apply `hover:text-foreground` from the base classes, so the chevron text turns default on hover instead of staying emerald. Add a running-state hover text override to keep the colors consistent with the left button.</comment>

<file context>
@@ -142,6 +142,10 @@ export const WorkspaceRunButton = memo(function WorkspaceRunButton({
 							"active:scale-[0.98]",
 							isPending && "opacity-50 pointer-events-none",
+							isRunning
+								? "text-emerald-300 border-emerald-500/25 bg-emerald-500/10 hover:bg-emerald-500/20"
+								: !hasRunCommand &&
+									"text-muted-foreground/80 border-border/40 bg-secondary/40",
</file context>
Suggested change
? "text-emerald-300 border-emerald-500/25 bg-emerald-500/10 hover:bg-emerald-500/20"
? "text-emerald-300 border-emerald-500/25 bg-emerald-500/10 hover:bg-emerald-500/20 hover:text-emerald-300"
Fix with Cubic

: !hasRunCommand &&
"text-muted-foreground/80 border-border/40 bg-secondary/40",
)}
>
<HiChevronDown className="size-3.5" />
Expand Down
Loading