Skip to content

Commit 2365885

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(ui): preserve tiny actions and use shared sidebar geometry
1 parent f472cbb commit 2365885

6 files changed

Lines changed: 16 additions & 10 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-
size='icon'
257+
className='p-0'
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-
size='icon'
277+
className='p-0'
278278
onClick={() => {
279279
const contentToCopy =
280280
typeof cleanTextContent === 'string'

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ export const TableSidebarHeaderAction = forwardRef<
2626
ref={ref}
2727
variant='ghost'
2828
size='sm'
29+
iconSize='regular'
2930
iconPadding='sm'
3031
className={cn(
31-
'size-7 focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--text-muted)_30%,transparent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-2)]',
32+
'focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--text-muted)_30%,transparent)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-2)]',
3233
className
3334
)}
3435
/>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,11 @@ export function Editor() {
476476
{userPermissions.canAdmin && currentBlock.locked && !isAncestorLocked ? (
477477
<Button
478478
variant='ghost'
479-
size='icon'
479+
className='p-0'
480480
onClick={() => collaborativeBatchToggleLocked([currentBlockId!])}
481481
aria-label='Unlock block'
482482
>
483-
<Unlock className='size-[14px]' />
483+
<Unlock className='size-[14px] text-[var(--text-secondary)]' />
484484
</Button>
485485
) : (
486486
<div className='flex items-center justify-center'>
@@ -505,7 +505,7 @@ export function Editor() {
505505
<Tooltip.Trigger asChild>
506506
<Button
507507
variant='ghost'
508-
size='icon'
508+
className='p-0'
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-
size='icon'
547+
className='p-0'
548548
onClick={handleOpenDocs}
549549
aria-label='Open documentation'
550550
>

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,12 @@ 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 variant='ghost' size='icon' aria-label='Search toolbar' onClick={focusSearch}>
878+
<Button
879+
variant='ghost'
880+
className='p-0'
881+
aria-label='Search toolbar'
882+
onClick={focusSearch}
883+
>
879884
<Search className='size-[14px]' />
880885
</Button>
881886
) : (

‎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-
size='icon'
918+
className='p-0'
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' size='icon' aria-label='Chat history'>
931+
<Button variant='ghost' className='p-0' aria-label='Chat history'>
932932
<BubbleChatDelay className='size-[14px]' />
933933
</Button>
934934
</DropdownMenuTrigger>

0 commit comments

Comments
 (0)