Skip to content

Commit d7ab4bd

Browse files
chore: fix button state
1 parent c4edfa8 commit d7ab4bd

File tree

1 file changed

+9
-6
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,9 @@ export function Chat() {
11431143
{isStreaming ? (
11441144
<Button
11451145
onClick={handleStopStreaming}
1146-
className='!bg-[var(--text-subtle)] hover-hover:!bg-[var(--surface-7)] h-[22px] w-[22px] rounded-full p-0 transition-colors'
1146+
className='h-[22px] w-[22px] rounded-full border-0 p-0 transition-colors bg-[var(--text-primary)] hover-hover:bg-[var(--text-secondary)] dark:bg-[var(--border-1)] dark:hover-hover:bg-[var(--text-body)]'
11471147
>
1148-
<Square className='h-2.5 w-2.5 fill-black text-black' />
1148+
<Square className='h-2.5 w-2.5 fill-white text-white dark:fill-black dark:text-black' />
11491149
</Button>
11501150
) : (
11511151
<Button
@@ -1157,13 +1157,16 @@ export function Chat() {
11571157
isStreaming
11581158
}
11591159
className={cn(
1160-
'h-[22px] w-[22px] rounded-full p-0 transition-colors',
1160+
'h-[22px] w-[22px] rounded-full border-0 p-0 transition-colors',
11611161
chatMessage.trim() || chatFiles.length > 0
1162-
? '!bg-[var(--text-subtle)] hover-hover:!bg-[var(--surface-7)]'
1163-
: '!bg-[var(--text-subtle)]'
1162+
? 'bg-[var(--text-primary)] hover-hover:bg-[var(--text-secondary)] dark:bg-[var(--border-1)] dark:hover-hover:bg-[var(--text-body)]'
1163+
: 'bg-[var(--text-subtle)] dark:bg-[var(--text-subtle)]'
11641164
)}
11651165
>
1166-
<ArrowUp className='h-3.5 w-3.5 text-black' strokeWidth={2.25} />
1166+
<ArrowUp
1167+
className='h-3.5 w-3.5 text-white dark:text-black'
1168+
strokeWidth={2.25}
1169+
/>
11671170
</Button>
11681171
)}
11691172
</div>

0 commit comments

Comments
 (0)