Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function ChatFileDownloadAll({ files }: ChatFileDownloadAllProps) {
variant='ghost-secondary'
onClick={handleDownloadAll}
disabled={isDownloading}
className='p-0'
size='icon'
>
{isDownloading ? (
<Loader className='size-3' animate />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const ClientChatMessage = memo(function ClientChatMessage({
<Button
aria-label={isCopied ? 'Copied!' : 'Copy to clipboard'}
variant='ghost-secondary'
className='p-0'
size='icon'
onClick={() => {
const contentToCopy =
typeof cleanTextContent === 'string'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ export function Editor() {
{userPermissions.canAdmin && currentBlock.locked && !isAncestorLocked ? (
<Button
variant='ghost'
className='p-0'
size='icon'
Comment thread
BillLeoutsakosvl346 marked this conversation as resolved.
onClick={() => collaborativeBatchToggleLocked([currentBlockId!])}
aria-label='Unlock block'
>
<Unlock className='size-[14px] text-[var(--text-secondary)]' />
<Unlock className='size-[14px]' />
</Button>
) : (
<div className='flex items-center justify-center'>
Expand All @@ -505,7 +505,7 @@ export function Editor() {
<Tooltip.Trigger asChild>
<Button
variant='ghost'
className='p-0'
size='icon'
onClick={isRenaming ? handleSaveRename : handleStartRename}
disabled={!canEditBlock}
aria-label={isRenaming ? 'Save name' : 'Rename block'}
Expand Down Expand Up @@ -544,7 +544,7 @@ export function Editor() {
<Tooltip.Trigger asChild>
<Button
variant='ghost'
className='p-0'
size='icon'
onClick={handleOpenDocs}
aria-label='Open documentation'
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,12 +875,7 @@ export const Toolbar = memo(
<h2 className='text-[var(--text-primary)] text-sm'>Toolbar</h2>
<div className='flex shrink-0 items-center gap-2'>
{!isSearchActive ? (
<Button
variant='ghost'
className='p-0'
aria-label='Search toolbar'
onClick={focusSearch}
>
<Button variant='ghost' size='icon' aria-label='Search toolbar' onClick={focusSearch}>
<Search className='size-[14px]' />
</Button>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ export const Panel = memo(function Panel() {
<Button
aria-label='New Chat'
variant='ghost'
className='p-0'
size='icon'
onClick={handleCopilotNewChat}
>
<Plus className='size-[14px]' />
Expand All @@ -928,7 +928,7 @@ export const Panel = memo(function Panel() {
}}
>
<DropdownMenuTrigger asChild>
<Button variant='ghost' className='p-0' aria-label='Chat history'>
<Button variant='ghost' size='icon' aria-label='Chat history'>
<BubbleChatDelay className='size-[14px]' />
</Button>
</DropdownMenuTrigger>
Expand Down
Loading