Skip to content

Commit 6611a66

Browse files
fix(note): remove icon from note block in preview
Co-authored-by: emir <emir@simstudio.ai>
1 parent 2b026de commit 6611a66

File tree

1 file changed

+8
-6
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow/components/block

1 file changed

+8
-6
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow/components/block/block.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,14 @@ function WorkflowPreviewBlockInner({ data }: NodeProps<WorkflowPreviewBlockData>
461461
className={`flex items-center justify-between p-[8px] ${hasContentBelowHeader ? 'border-[var(--border-1)] border-b' : ''}`}
462462
>
463463
<div className='relative z-10 flex min-w-0 flex-1 items-center gap-[10px]'>
464-
<div
465-
className='flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center rounded-[6px]'
466-
style={{ background: enabled ? blockConfig.bgColor : 'gray' }}
467-
>
468-
<IconComponent className='h-[16px] w-[16px] text-white' />
469-
</div>
464+
{!isNoteBlock && (
465+
<div
466+
className='flex h-[24px] w-[24px] flex-shrink-0 items-center justify-center rounded-[6px]'
467+
style={{ background: enabled ? blockConfig.bgColor : 'gray' }}
468+
>
469+
<IconComponent className='h-[16px] w-[16px] text-white' />
470+
</div>
471+
)}
470472
<span
471473
className={`truncate font-medium text-[16px] ${!enabled ? 'text-[var(--text-muted)]' : ''}`}
472474
title={name}

0 commit comments

Comments
 (0)