Skip to content

Commit 070719e

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
improvement(ui): use inline Button for small text actions
1 parent d583476 commit 070719e

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/file-download/file-download.tsx‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ function FileCard({ file, isExecutionFile = false, workspaceId }: FileCardProps)
106106
{file.type}
107107
{file.version === undefined ? '' : ` · v${file.version}`}
108108
</span>
109-
<Button
110-
variant='ghost'
111-
className='h-[20px]! px-1.5! py-0! text-xs'
112-
onClick={handleDownload}
113-
>
109+
<Button variant='ghost' size='inline' onClick={handleDownload}>
114110
<Download className='mr-1 size-[10px]' />
115111
Download
116112
</Button>

‎apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/table-primitives.tsx‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ export const AddRowButton = React.memo(function AddRowButton({
7272
<Button
7373
type='button'
7474
variant='ghost'
75-
size='sm'
76-
className={cn(
77-
'h-[20px] gap-2 p-0 text-[var(--text-body)]',
78-
blockedReason && 'cursor-not-allowed opacity-50'
79-
)}
75+
size='inline'
76+
className={cn('gap-2', blockedReason && 'cursor-not-allowed opacity-50')}
8077
aria-disabled={blockedReason ? true : undefined}
8178
onClick={blockedReason ? undefined : onClick}
8279
>

0 commit comments

Comments
 (0)