Skip to content

Commit bda4d98

Browse files
committed
improvement(workflow): give the canvas-mode chevron the same treatment as its siblings
It was the only control in the cluster with no hover fill and a different rest colour (--text-muted against the others' --text-secondary), so it read fainter and behaved differently under the pointer. It is also a disclosure chevron, so it now uses disclosureChevronClass instead of a hand-rolled duration-100 copy, and a real 20px box instead of the !p-1.5 override plus -m-1 hit-area hack.
1 parent 8059c49 commit bda4d98

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/workflow-controls.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Cursor,
88
chipHoverSurfaceClass,
99
cn,
10+
disclosureChevronClass,
1011
Hand,
1112
Popover,
1213
PopoverAnchor,
@@ -108,9 +109,12 @@ export const WorkflowControls = memo(function WorkflowControls() {
108109
)}
109110
</Button>
110111
</Tooltip.Trigger>
111-
<Button className='-m-1 !p-1.5 group' variant='ghost'>
112+
<Button
113+
variant='ghost'
114+
className={cn('size-[20px] rounded-sm p-0', chipHoverSurfaceClass)}
115+
>
112116
<ChevronDown
113-
className={`size-[14px] text-[var(--text-muted)] transition-transform duration-100 group-hover:text-[var(--text-secondary)] ${isCanvasModeOpen ? 'rotate-180' : ''}`}
117+
className={cn(disclosureChevronClass, isCanvasModeOpen && 'rotate-180')}
114118
/>
115119
</Button>
116120
</div>

0 commit comments

Comments
 (0)