Skip to content

Commit 9cb4acd

Browse files
chore: fix button state
1 parent 5b6fcc3 commit 9cb4acd

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/user-input/user-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const OVERLAY_CLASSES = cn(
102102

103103
const SEND_BUTTON_BASE = 'h-[28px] w-[28px] rounded-full border-0 p-0 transition-colors'
104104
const SEND_BUTTON_ACTIVE =
105-
'bg-[var(--divider)] hover-hover:bg-[var(--text-secondary)] dark:bg-[var(--border-1)] dark:hover-hover:bg-[var(--text-body)]'
105+
'bg-[var(--text-primary)] hover-hover:bg-[var(--text-secondary)] dark:bg-[var(--border-1)] dark:hover-hover:bg-[var(--text-body)]'
106106
const SEND_BUTTON_DISABLED = 'bg-[var(--text-subtle)] dark:bg-[var(--text-subtle)]'
107107

108108
const MAX_CHAT_TEXTAREA_HEIGHT = 200
@@ -841,7 +841,7 @@ export function UserInput({
841841
<DropdownMenuTrigger asChild>
842842
<button
843843
type='button'
844-
className='flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded-full border border-[var(--landing-bg-elevated)] transition-colors hover-hover:bg-[var(--surface-3)] dark:border-[var(--border-1)] dark:hover-hover:bg-[var(--surface-4)]'
844+
className='flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded-full border transition-colors hover-hover:bg-[var(--surface-3)] dark:border-[var(--border-1)] dark:hover-hover:bg-[var(--surface-4)]'
845845
title='Add attachments or resources'
846846
>
847847
<Plus className='h-[16px] w-[16px] text-[var(--text-icon)]' />

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,10 +2737,10 @@ const ColumnHeaderMenu = React.memo(function ColumnHeaderMenu({
27372737
<DropdownMenuTrigger asChild>
27382738
<button
27392739
type='button'
2740-
className='flex h-full w-full min-w-0 cursor-pointer items-center px-2 py-[7px] outline-none active:cursor-grabbing'
2740+
className='flex h-full w-full min-w-0 cursor-pointer items-center px-2 py-[7px] outline-none active:cursor-grabbing'
27412741
>
27422742
<ColumnTypeIcon type={column.type} />
2743-
<span className='ml-1.5 min-w-0 overflow-clip text-ellipsis whitespace-nowrap font-medium text-small text-[var(--text-primary)]'>
2743+
<span className='ml-1.5 min-w-0 overflow-clip text-ellipsis whitespace-nowrap font-medium text-[var(--text-primary)] text-small'>
27442744
{column.name}
27452745
</span>
27462746
<ChevronDown className='ml-2 h-[7px] w-[9px] shrink-0 text-[var(--text-muted)]' />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ export const Toolbar = memo(
707707
>
708708
{/* Header */}
709709
<div
710-
className='mx-[-1px] flex flex-shrink-0 cursor-pointer items-center justify-between rounded-sm border border-[var(--border)] bg-[var(--surface-4)] px-3 py-1.5'
710+
className='mx-[-1px] flex flex-shrink-0 cursor-pointer items-center justify-between border border-[var(--border)] bg-[var(--surface-4)] px-3 py-1.5'
711711
onClick={handleSearchClick}
712712
>
713713
<h2 className='font-medium text-[var(--text-primary)] text-sm'>Toolbar</h2>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ export const Panel = memo(function Panel() {
745745
data-tab-content='copilot'
746746
>
747747
{/* Copilot Header */}
748-
<div className='mx-[-1px] flex flex-shrink-0 items-center justify-between gap-[8px] rounded-[4px] border border-[var(--border)] bg-[var(--surface-4)] px-[12px] py-[6px]'>
748+
<div className='mx-[-1px] flex flex-shrink-0 items-center justify-between gap-[8px] border border-[var(--border)] bg-[var(--surface-4)] px-[12px] py-[6px]'>
749749
<h2 className='min-w-0 flex-1 truncate font-medium text-[14px] text-[var(--text-primary)]'>
750750
{copilotChatTitle || 'New Chat'}
751751
</h2>

apps/sim/components/emcn/components/button/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const buttonVariants = cva(
1515
outline:
1616
'text-[var(--text-secondary)] hover-hover:text-[var(--text-primary)] border border-[var(--text-muted)] bg-transparent hover-hover:border-[var(--text-secondary)]',
1717
primary:
18-
'bg-[var(--text-primary)] text-[var(--text-inverse)] hover-hover:text-[var(--text-inverse)] hover-hover:bg-[var(--surface-4)] dark:bg-white dark:text-[var(--bg)] dark:hover-hover:bg-[var(--border-1)] dark:hover-hover:text-[var(--text-inverse)]',
18+
'bg-[var(--text-primary)] text-[var(--text-inverse)] hover-hover:text-[var(--text-inverse)] hover-hover:bg-[var(--text-body)] dark:bg-white dark:text-[var(--bg)] dark:hover-hover:bg-[var(--text-secondary)] dark:hover-hover:text-[var(--bg)]',
1919
destructive:
2020
'bg-[var(--text-error)] text-white hover-hover:text-white hover-hover:brightness-106',
2121
secondary: 'bg-[var(--brand-secondary)] text-[var(--text-primary)]',
@@ -30,8 +30,8 @@ const buttonVariants = cva(
3030
'rounded-[10px] border text-white hover-hover:text-white text-base transition-[transform,background-color,color,border-color] duration-200',
3131
},
3232
size: {
33-
sm: 'px-1.5 py-1 text-xs',
34-
md: 'px-2 py-1.5 text-caption',
33+
sm: 'px-1.5 py-1 text-[length:11px]',
34+
md: 'px-2 py-1.5 text-[length:12px]',
3535
/** Branded size - matches login form button padding */
3636
branded: 'py-1.5 pr-2.5 pl-3',
3737
},

0 commit comments

Comments
 (0)