Skip to content

Commit 420739a

Browse files
committed
fix(workflow): restore compact run button
1 parent 2aa64c0 commit 420739a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ export const Panel = memo(function Panel({ onCloseEditor }: PanelProps) {
221221
disabled={workflowLocked}
222222
/>
223223
<Chip
224-
className='h-[32px]'
225224
variant={isExecuting ? undefined : 'primary'}
226225
active={isExecuting}
227226
onClick={isExecuting ? cancelWorkflow : () => runWorkflow()}
@@ -230,25 +229,20 @@ export const Panel = memo(function Panel({ onCloseEditor }: PanelProps) {
230229
leftAdornment={
231230
<span
232231
aria-hidden='true'
233-
className='inline-flex size-5 flex-shrink-0 items-center justify-center overflow-visible'
232+
className='inline-flex size-[14px] flex-shrink-0 items-center justify-center overflow-visible'
234233
>
235234
<ThinkingLoader
236235
variant={isExecuting ? undefined : 'play'}
237236
startVariant='play'
238237
startHoldMs={140}
239-
size={20}
238+
size={14}
240239
morphDurationMs={isExecuting ? 650 : 180}
241240
tone='inherit'
242241
/>
243242
</span>
244243
}
245244
>
246-
<span className='inline-grid'>
247-
<span aria-hidden='true' className='invisible col-start-1 row-start-1'>
248-
Stop
249-
</span>
250-
<span className='col-start-1 row-start-1'>{isExecuting ? 'Stop' : 'Run'}</span>
251-
</span>
245+
{isExecuting ? 'Stop' : 'Run'}
252246
</Chip>
253247
</div>
254248
</div>

0 commit comments

Comments
 (0)