Skip to content

Commit 8a6530e

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
refactor(ui): use shared icon buttons in card headers
1 parent ffd56d1 commit 8a6530e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,24 +252,24 @@ export function KnowledgeTagFilters({
252252
<>
253253
<Button
254254
variant='ghost'
255+
size='icon'
255256
onClick={(e) => {
256257
e.stopPropagation()
257258
addFilter()
258259
}}
259260
disabled={isReadOnly}
260-
className='h-auto p-0'
261261
>
262262
<Plus className='size-[14px]' />
263263
<span className='sr-only'>Add Filter</span>
264264
</Button>
265265
<Button
266266
variant='ghost-destructive'
267+
size='icon'
267268
onClick={(e) => {
268269
e.stopPropagation()
269270
removeFilter(filter.id)
270271
}}
271272
disabled={isReadOnly}
272-
className='h-auto p-0'
273273
>
274274
<Trash className='size-[14px]' />
275275
<span className='sr-only'>Delete Filter</span>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ export function Variables({ readOnly = false }: VariablesProps) {
453453
actions={
454454
<Button
455455
variant='ghost-destructive'
456+
size='icon'
456457
onClick={(e) => {
457458
e.stopPropagation()
458459
handleRemoveVariable(variable.id)
459460
}}
460-
className='h-auto p-0'
461461
disabled={readOnly}
462462
aria-label={`Delete ${variable.name || `variable ${index + 1}`}`}
463463
>

0 commit comments

Comments
 (0)