Skip to content

Commit 9d9d544

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
improvement(ui): use shared sizing for small icon actions
1 parent 9566171 commit 9d9d544

5 files changed

Lines changed: 8 additions & 13 deletions

File tree

‎apps/sim/app/(interfaces)/chat/components/message/components/file-download.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export function ChatFileDownloadAll({ files }: ChatFileDownloadAllProps) {
254254
variant='ghost-secondary'
255255
onClick={handleDownloadAll}
256256
disabled={isDownloading}
257-
className='p-0'
257+
size='icon'
258258
>
259259
{isDownloading ? (
260260
<Loader className='size-3' animate />

‎apps/sim/app/(interfaces)/chat/components/message/message.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export const ClientChatMessage = memo(function ClientChatMessage({
274274
<Button
275275
aria-label={isCopied ? 'Copied!' : 'Copy to clipboard'}
276276
variant='ghost-secondary'
277-
className='p-0'
277+
size='icon'
278278
onClick={() => {
279279
const contentToCopy =
280280
typeof cleanTextContent === 'string'

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export function Editor() {
476476
{userPermissions.canAdmin && currentBlock.locked && !isAncestorLocked ? (
477477
<Button
478478
variant='ghost'
479-
className='p-0'
479+
size='icon'
480480
onClick={() => collaborativeBatchToggleLocked([currentBlockId!])}
481481
aria-label='Unlock block'
482482
>
@@ -505,7 +505,7 @@ export function Editor() {
505505
<Tooltip.Trigger asChild>
506506
<Button
507507
variant='ghost'
508-
className='p-0'
508+
size='icon'
509509
onClick={isRenaming ? handleSaveRename : handleStartRename}
510510
disabled={!canEditBlock}
511511
aria-label={isRenaming ? 'Save name' : 'Rename block'}
@@ -544,7 +544,7 @@ export function Editor() {
544544
<Tooltip.Trigger asChild>
545545
<Button
546546
variant='ghost'
547-
className='p-0'
547+
size='icon'
548548
onClick={handleOpenDocs}
549549
aria-label='Open documentation'
550550
>

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,12 +875,7 @@ export const Toolbar = memo(
875875
<h2 className='text-[var(--text-primary)] text-sm'>Toolbar</h2>
876876
<div className='flex shrink-0 items-center gap-2'>
877877
{!isSearchActive ? (
878-
<Button
879-
variant='ghost'
880-
className='p-0'
881-
aria-label='Search toolbar'
882-
onClick={focusSearch}
883-
>
878+
<Button variant='ghost' size='icon' aria-label='Search toolbar' onClick={focusSearch}>
884879
<Search className='size-[14px]' />
885880
</Button>
886881
) : (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ export const Panel = memo(function Panel() {
915915
<Button
916916
aria-label='New Chat'
917917
variant='ghost'
918-
className='p-0'
918+
size='icon'
919919
onClick={handleCopilotNewChat}
920920
>
921921
<Plus className='size-[14px]' />
@@ -928,7 +928,7 @@ export const Panel = memo(function Panel() {
928928
}}
929929
>
930930
<DropdownMenuTrigger asChild>
931-
<Button variant='ghost' className='p-0' aria-label='Chat history'>
931+
<Button variant='ghost' size='icon' aria-label='Chat history'>
932932
<BubbleChatDelay className='size-[14px]' />
933933
</Button>
934934
</DropdownMenuTrigger>

0 commit comments

Comments
 (0)