Skip to content

Commit bd0eca0

Browse files
authored
fix(tag-dropdown): fix the way variables are displayed in the tag dropdown (#2597)
1 parent a60a1fc commit bd0eca0

File tree

1 file changed

+6
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown

1 file changed

+6
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tag-dropdown/tag-dropdown.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,12 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
14731473
<>
14741474
{variableTags.length > 0 && (
14751475
<>
1476-
<PopoverSection>Variables</PopoverSection>
1476+
<PopoverSection rootOnly>
1477+
<div className='flex items-center gap-[6px]'>
1478+
<TagIcon icon='V' color={BLOCK_COLORS.VARIABLE} />
1479+
Variables
1480+
</div>
1481+
</PopoverSection>
14771482
{variableTags.map((tag: string) => {
14781483
const variableInfo = variableInfoMap?.[tag] || null
14791484
const globalIndex = flatTagList.findIndex((item) => item.tag === tag)
@@ -1497,7 +1502,6 @@ export const TagDropdown: React.FC<TagDropdownProps> = ({
14971502
}
14981503
}}
14991504
>
1500-
<TagIcon icon='V' color={BLOCK_COLORS.VARIABLE} />
15011505
<span className='flex-1 truncate text-[var(--text-primary)]'>
15021506
{tag.startsWith(TAG_PREFIXES.VARIABLE)
15031507
? tag.substring(TAG_PREFIXES.VARIABLE.length)

0 commit comments

Comments
 (0)