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
2 changes: 1 addition & 1 deletion apps/sim/app/(auth)/components/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export const AUTH_CONTROL_HEIGHT = 'h-9'
* under `justify-center` (the landing `HeroCta` idiom). Height-only inputs use
* {@link AUTH_CONTROL_HEIGHT}; buttons compose this on top of it.
*/
export const AUTH_BUTTON_CLASS = `${AUTH_CONTROL_HEIGHT} w-full justify-center [&>span]:flex-none`
export const AUTH_BUTTON_CLASS = `${AUTH_CONTROL_HEIGHT} justify-center [&>span]:flex-none`
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function ChatMessageContainer({
<Button
onClick={scrollToBottom}
size='sm'
className='gap-1 rounded-full px-3 py-1 shadow-medium'
className='gap-1 rounded-full px-3 shadow-medium'
>
<ArrowDown className='size-3.5' />
<span className='sr-only'>Scroll to bottom</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function ChatFileDownload({ file }: ChatFileDownloadProps) {
variant='default'
onClick={handleDownload}
disabled={isDownloading}
className='group flex h-auto w-[200px] items-center gap-2 rounded-lg px-3 py-2'
className='group flex h-auto w-[200px] gap-2 rounded-lg px-3 py-2'
>
<div className='flex size-8 shrink-0 items-center justify-center'>{renderIcon()}</div>
<div className='min-w-0 flex-1 text-left'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useAnimatedPlaceholder } from '@/hooks/use-animated-placeholder'
import { useChatInputFocus } from '@/hooks/use-chat-input-focus'
import { useVoiceInput } from '@/hooks/use-voice-input'

const SEND_BUTTON_BASE = 'size-[28px] rounded-full border-0 p-0 transition-colors'
const SEND_BUTTON_BASE = 'size-[28px] rounded-full border-0 p-0'
const SEND_BUTTON_ACTIVE =
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
const SEND_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/app/o/[organizationId]/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from '@/app/workspace/[workspaceId]/w/components/sidebar/constants'
import { useVoiceInput } from '@/hooks/use-voice-input'

const SUBMIT_BUTTON_BASE = 'size-[28px] shrink-0 rounded-full border-0 p-0 transition-colors'
const SUBMIT_BUTTON_BASE = 'size-[28px] shrink-0 rounded-full border-0 p-0'
const SUBMIT_BUTTON_ACTIVE =
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
const SUBMIT_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { renderMoveOptions } from '@/app/workspace/[workspaceId]/components/fold
/** Shared chrome for every action button, so the bar reads as one control strip. */
const ACTION_BUTTON_CLASS = cn(
chipFilledFillTokens,
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 text-[var(--text-secondary)] hover-hover:bg-[var(--brand-secondary)]'
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 hover-hover:bg-[var(--brand-secondary)]'
)

interface ActionButtonProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ const Pagination = memo(function Pagination({
variant='ghost'
onClick={() => onPageChange(page)}
className={cn(
'h-auto p-0 text-sm transition-colors hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
page === currentPage ? 'text-[var(--text-body)]' : 'text-[var(--text-secondary)]'
'h-auto p-0 text-sm hover-hover:bg-transparent hover-hover:text-[var(--text-body)]',
page === currentPage ? 'text-[var(--text-body)]' : ''
)}
>
{page}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const SCROLLER_CLASSES = cn(
'[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden'
)

export const SEND_BUTTON_BASE = 'h-[28px] w-[28px] rounded-full border-0 p-0 transition-colors'
export const SEND_BUTTON_BASE = 'h-[28px] w-[28px] rounded-full border-0 p-0'
export const SEND_BUTTON_ACTIVE =
'bg-[#383838] hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover:bg-[#CFCFCF]'
export const SEND_BUTTON_DISABLED = 'bg-[#808080] dark:bg-[#808080]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/provide
/** One source of truth for the button chrome, so the three actions read as one control strip. */
const ACTION_BUTTON_CLASS = cn(
chipFilledFillTokens,
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 text-[var(--text-secondary)] hover-hover:bg-[var(--brand-secondary)]'
'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 hover-hover:bg-[var(--brand-secondary)]'
)

interface ActionBarProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ const TraceTreeRow = memo(function TraceTreeRow({
<Button
type='button'
variant='ghost'
className='size-[14px] shrink-0 p-0 text-[var(--text-tertiary)] hover-hover:bg-[var(--surface-4)] hover-hover:text-[var(--text-primary)]'
className='size-[14px] shrink-0 p-0 text-[var(--text-tertiary)] hover-hover:bg-[var(--surface-4)]'
onClick={(e) => {
e.stopPropagation()
onToggleExpand(id)
Expand Down Expand Up @@ -512,7 +512,7 @@ function DetailCodeSection({
e.stopPropagation()
handleCopy()
}}
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
>
{copied ? (
<Check className='size-[10px] text-[var(--text-success)]' />
Expand All @@ -533,7 +533,7 @@ function DetailCodeSection({
e.stopPropagation()
activateSearch()
}}
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
>
<Search className='size-[10px]' />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const WorkflowOutputSection = memo(
e.stopPropagation()
handleCopy()
}}
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
>
{copied ? (
<Check className='size-[10px] text-[var(--text-success)]' />
Expand All @@ -197,7 +197,7 @@ export const WorkflowOutputSection = memo(
e.stopPropagation()
activateSearch()
}}
className='size-[20px] cursor-pointer border border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
className='size-[20px] cursor-pointer border-[var(--border-1)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
>
<Search className='size-[10px]' />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export function Admin() {
<div className='flex gap-1'>
<Button
variant='active'
className='h-[28px] px-2 text-caption'
className='h-[28px] text-caption'
onClick={() =>
setAdminParams((prev) => ({
offset: Math.max(0, prev.offset - PAGE_SIZE),
Expand All @@ -457,7 +457,7 @@ export function Admin() {
</Button>
<Button
variant='active'
className='h-[28px] px-2 text-caption'
className='h-[28px] text-caption'
onClick={() =>
setAdminParams((prev) => ({ offset: prev.offset + PAGE_SIZE }))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ export function McpServerFormModal({
type='button'
variant='ghost'
onClick={() => setShowAdvanced((v) => !v)}
className='gap-1 self-start px-2 py-0 text-small'
className='gap-1 self-start py-0 text-small'
>
{showAdvanced ? (
<ChevronDown className='size-[14px]' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const RunStatusControl = memo(function RunStatusControl({
</div>
<Button
variant='subtle'
className='px-2 py-1 text-caption'
className='py-1 text-caption'
onClick={onStopAll}
disabled={isStopping}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function ActionIconButton({ label, onClick, disabled, children }: ActionIconButt
variant='ghost'
onClick={onClick}
disabled={disabled}
className='size-[28px] rounded-lg bg-[var(--surface-5)] p-0 text-[var(--text-secondary)] hover-hover:bg-[var(--brand-secondary)] hover-hover:text-[var(--text-inverse)]!'
className='size-[28px] rounded-lg bg-[var(--surface-5)] p-0 hover-hover:bg-[var(--brand-secondary)] hover-hover:text-[var(--text-inverse)]!'
aria-label={label}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,24 +243,14 @@ export function TableFilter({
))}

<div className={cn('mt-1 flex items-center', !autoApply && 'justify-between')}>
<Button
variant='ghost'
size='sm'
onClick={handleAdd}
className='px-2 py-1 text-[var(--text-secondary)] text-xs'
>
<Button variant='ghost' size='sm' onClick={handleAdd} className='px-2 text-xs'>
<Plus className='mr-1 size-[10px]' />
Add filter
</Button>
{!autoApply && (
<div className='flex items-center gap-1.5'>
{filter !== null && (
<Button
variant='ghost'
size='sm'
onClick={handleClear}
className='px-2 py-1 text-[var(--text-secondary)] text-xs'
>
<Button variant='ghost' size='sm' onClick={handleClear} className='px-2 text-xs'>
Clear filters
</Button>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function ImportProgressMenu({ workspaceId, tableId }: ImportProgressMenuP
return (
<DropdownMenu open={menuOpen} onOpenChange={setMenuOpen}>
<DropdownMenuTrigger asChild>
<Button variant='subtle' className='px-2 py-1 text-caption'>
<Button variant='subtle' className='py-1 text-caption'>
{/* Aggregate state, mirroring the row iconography: spinner while anything runs, then
alert if any job failed, else a check. */}
{anyRunning ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ export function Chat() {
aria-label='Stop generation'
onClick={handleStopStreaming}
variant='ghost'
className='size-[22px] rounded-full bg-[#383838] p-0 transition-colors hover-hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover-hover:bg-[#CFCFCF]'
className='size-[22px] rounded-full bg-[#383838] p-0 hover-hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover-hover:bg-[#CFCFCF]'
>
<Square className='h-2.5 w-2.5 fill-white text-white dark:fill-black dark:text-black' />
</Button>
Expand All @@ -1122,7 +1122,7 @@ export function Chat() {
isStreaming
}
className={cn(
'size-[22px] rounded-full p-0 transition-colors',
'size-[22px] rounded-full p-0',
chatMessage.trim() || chatFiles.length > 0
? 'bg-[#383838] hover-hover:bg-[#575757] dark:bg-[#E0E0E0] dark:hover-hover:bg-[#CFCFCF]'
: 'bg-[#808080] dark:bg-[#808080]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function GeneralDeploy({
type='button'
variant='default'
onClick={() => setShowExpandedPreview(true)}
className='absolute right-[8px] bottom-2 z-10 size-[28px] cursor-pointer border border-[var(--border)] bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
className='absolute right-[8px] bottom-2 z-10 size-[28px] cursor-pointer bg-transparent p-0 backdrop-blur-xs hover-hover:bg-[var(--surface-3)]'
>
<Expand className='size-[14px]' />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function GroupedCheckboxList({
disabled={disabled}
onClick={() => setOpen(true)}
className={cn(
'flex w-full cursor-pointer items-center justify-between rounded-sm border border-[var(--border-1)] bg-[var(--surface-5)] px-2 py-1.5 font-sans text-[var(--text-primary)] text-sm outline-hidden focus:outline-hidden focus-visible:outline-hidden focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-[var(--surface-5)]',
'flex w-full cursor-pointer justify-between rounded-sm border border-[var(--border-1)] bg-[var(--surface-5)] font-sans text-[var(--text-primary)] text-sm focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-[var(--surface-5)]',
'hover-hover:bg-[var(--surface-active)]'
)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const renderLabel = (
{!wandState.isSearchActive ? (
<Button
variant='active'
className='-my-1 h-5 px-2 py-0 text-xs'
className='-my-1 h-5 py-0 text-xs'
onClick={wandState.onSearchClick}
>
Generate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ export const Panel = memo(function Panel() {
<div className='flex gap-1.5'>
<DropdownMenu open={isMenuOpen} onOpenChange={setIsMenuOpen}>
<DropdownMenuTrigger asChild>
<Button aria-label='Workflow actions' className='size-[30px] rounded-[5px]'>
<Button aria-label='Workflow actions' className='size-[30px]'>
<MoreHorizontal className='size-[14px]' />
</Button>
</DropdownMenuTrigger>
Expand Down Expand Up @@ -802,7 +802,7 @@ export const Panel = memo(function Panel() {
</DropdownMenu>
<Button
aria-label={isChatOpen ? 'Close chat' : 'Open chat'}
className='size-[30px] rounded-[5px]'
className='size-[30px]'
variant={isChatOpen ? 'active' : 'default'}
onClick={() => setIsChatOpen(!isChatOpen)}
>
Expand Down Expand Up @@ -854,10 +854,10 @@ export const Panel = memo(function Panel() {
<div className='flex gap-1'>
{isCopilotTabAvailable && (
<Button
className={`h-[28px] truncate rounded-md border px-2 py-[5px] text-[12.5px] ${
className={`h-[28px] truncate rounded-md border py-[5px] text-[12.5px] ${
_hasHydrated && activeTab === 'copilot'
? 'border-[var(--border-1)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)] hover-hover:text-[var(--text-primary)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)]'
}`}
variant={_hasHydrated && activeTab === 'copilot' ? 'active' : 'ghost'}
onClick={() => handleTabClick('copilot')}
Expand All @@ -867,10 +867,10 @@ export const Panel = memo(function Panel() {
</Button>
)}
<Button
className={`h-[28px] rounded-md border px-2 py-[5px] text-[12.5px] ${
className={`h-[28px] rounded-md border py-[5px] text-[12.5px] ${
_hasHydrated && activeTab === 'toolbar'
? 'border-[var(--border-1)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)] hover-hover:text-[var(--text-primary)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)]'
}`}
variant={_hasHydrated && activeTab === 'toolbar' ? 'active' : 'ghost'}
onClick={() => handleTabClick('toolbar')}
Expand All @@ -879,10 +879,10 @@ export const Panel = memo(function Panel() {
Toolbar
</Button>
<Button
className={`h-[28px] rounded-md border px-2 py-[5px] text-[12.5px] ${
className={`h-[28px] rounded-md border py-[5px] text-[12.5px] ${
_hasHydrated && activeTab === 'editor'
? 'border-[var(--border-1)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)] hover-hover:text-[var(--text-primary)]'
: 'border-transparent hover-hover:border-[var(--border-1)] hover-hover:bg-[var(--surface-5)]'
}`}
variant={_hasHydrated && activeTab === 'editor' ? 'active' : 'ghost'}
onClick={() => handleTabClick('editor')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ export function ReplacementControls({
</span>
<div className='flex gap-1.5'>
<Button
className='h-8 px-2 text-xs'
className='h-8 text-xs'
variant='default'
disabled={disabled || isApplying || !canReplaceActive}
onClick={onReplaceActive}
>
Replace
</Button>
<Button
className='h-8 px-2 text-xs'
className='h-8 text-xs'
variant='active'
disabled={disabled || isApplying || !canReplaceAll}
onClick={onReplaceAll}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const OutputPanel = React.memo(function OutputPanel({
<Button
variant='ghost'
className={cn(
'px-2 py-1.5 text-small',
'text-small',
!showInput ? 'text-[var(--text-primary)]!' : 'text-[var(--text-icon)]!'
)}
onClick={handleOutputButtonClick}
Expand All @@ -323,7 +323,7 @@ export const OutputPanel = React.memo(function OutputPanel({
<Button
variant='ghost'
className={cn(
'px-2 py-1.5 text-small',
'text-small',
showInput ? 'text-[var(--text-primary)]!' : 'text-[var(--text-icon)]!'
)}
onClick={handleInputButtonClick}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function Preview({
<Button
variant='ghost'
onClick={handleGoBack}
className='flex h-[28px] items-center gap-[5px] rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2.5 text-[var(--text-secondary)] shadow-xs hover-hover:bg-[var(--surface-4)] hover-hover:text-[var(--text-primary)]'
className='flex h-[28px] gap-[5px] rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2.5 shadow-xs hover-hover:bg-[var(--surface-4)]'
>
<ArrowLeft className='size-[12px]' />
<span className='text-caption'>Back</span>
Expand Down
Loading