Skip to content

Commit b2d2c7b

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(ui): preserve compact replacement actions and filter alignment
1 parent 807c575 commit b2d2c7b

3 files changed

Lines changed: 16 additions & 9 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/files/files.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ function FilesContent() {
20572057
</div>
20582058
)}
20592059
{hasActiveFilters && (
2060-
<Chip fullWidth onClick={clearFileFilters}>
2060+
<Chip fullWidth onClick={clearFileFilters} className='text-center'>
20612061
Clear all filters
20622062
</Chip>
20632063
)}

‎apps/sim/app/workspace/[workspaceId]/logs/logs.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,12 @@ function LogsFilterPanel({ searchQuery, onSearchQueryChange }: LogsFilterPanelPr
15851585
</div>
15861586

15871587
{filtersActive && (
1588-
<Chip variant='border-shadow' fullWidth onClick={handleClearFilters}>
1588+
<Chip
1589+
variant='border-shadow'
1590+
fullWidth
1591+
onClick={handleClearFilters}
1592+
className='text-center'
1593+
>
15891594
Clear All Filters
15901595
</Chip>
15911596
)}

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/search-replace/components/replacement-controls/replacement-controls.tsx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Chip, ChipCombobox, ChipInput } from '@sim/emcn'
3+
import { Button, ChipCombobox, ChipInput } from '@sim/emcn'
44
import type { WorkflowSearchReplacementOption } from '@/lib/workflows/search-replace/types'
55

66
interface ReplacementControlsProps {
@@ -60,20 +60,22 @@ export function ReplacementControls({
6060
{eligibleCount} replaceable match{eligibleCount === 1 ? '' : 'es'}
6161
</span>
6262
<div className='flex gap-1.5'>
63-
<Chip
64-
variant='border-shadow'
63+
<Button
64+
className='h-8 text-xs'
65+
variant='default'
6566
disabled={disabled || isApplying || !canReplaceActive}
6667
onClick={onReplaceActive}
6768
>
6869
Replace
69-
</Chip>
70-
<Chip
71-
variant='border-shadow'
70+
</Button>
71+
<Button
72+
className='h-8 text-xs'
73+
variant='active'
7274
disabled={disabled || isApplying || !canReplaceAll}
7375
onClick={onReplaceAll}
7476
>
7577
{isApplying ? 'Replacing...' : 'Replace All'}
76-
</Chip>
78+
</Button>
7779
</div>
7880
</div>
7981
</div>

0 commit comments

Comments
 (0)