Skip to content

Commit 1bf9125

Browse files
andresdjassoclaude
andcommitted
style(sidebar): workflow rows lead with the Workflow glyph
Workflow list items were text-only while every nav item above carries an icon. Rows now lead with the same Workflow icon the resource tabs use, rendered with chipContentIconClass so it sits on the canonical chip rhythm. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8bf590c commit 1bf9125

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useCallback, useMemo, useRef, useState } from 'react'
44
import clsx from 'clsx'
55
import Link from 'next/link'
66
import { useParams } from 'next/navigation'
7-
import { chipVariants } from '@/components/emcn'
8-
import { Lock, MoreHorizontal } from '@/components/emcn/icons'
7+
import { chipContentIconClass, chipVariants } from '@/components/emcn'
8+
import { Lock, MoreHorizontal, Workflow } from '@/components/emcn/icons'
99
import { SIM_RESOURCES_DRAG_TYPE } from '@/lib/copilot/resource-types'
1010
import { cn } from '@/lib/core/utils/cn'
1111
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
@@ -408,6 +408,9 @@ export function WorkflowItem({ workflow, active }: WorkflowItemProps) {
408408
onClick={handleWorkflowSelect}
409409
onContextMenu={handleContextMenu}
410410
>
411+
{/* Same Workflow glyph as the resource tabs — chipContentIconClass
412+
keeps the icon on the canonical chip rhythm like the nav items. */}
413+
<Workflow className={chipContentIconClass} aria-hidden='true' />
411414
<div className='min-w-0 flex-1'>
412415
<div className='flex min-w-0 items-center gap-2'>
413416
{isEditing ? (

0 commit comments

Comments
 (0)