Skip to content

Commit a5ac656

Browse files
authored
fix(ui): correct color mapping in sidebar and chat-input components (iflabx#233)
1 parent 5b597c8 commit a5ac656

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

components/chat-input/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const ChatButton = ({
4141
disabled={disabled}
4242
className={cn(
4343
'flex h-8 w-8 items-center justify-center rounded-lg',
44-
'border border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-stone-600 dark:bg-stone-600/30 dark:text-stone-300 dark:hover:bg-stone-700/50',
44+
'border border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-stone-600 dark:bg-stone-600/30 dark:text-gray-100 dark:hover:bg-stone-600',
4545
'bg-transparent',
4646
'cursor-pointer',
4747
className
@@ -63,7 +63,7 @@ export const ChatButton = ({
6363
'flex h-8 w-8 items-center justify-center rounded-full',
6464
forceActiveStyle || !disabled
6565
? 'bg-black text-white hover:bg-gray-800 dark:bg-stone-900 dark:hover:bg-stone-800'
66-
: 'bg-gray-200 text-gray-400 dark:bg-stone-600 dark:text-stone-300',
66+
: 'bg-gray-200 text-gray-400 dark:bg-stone-600 dark:text-gray-100',
6767
'cursor-pointer shadow-sm',
6868
className
6969
)}

components/chat-input/container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const ChatContainer = ({
6262
<div
6363
className={cn(
6464
'flex flex-col rounded-2xl',
65-
'bg-white dark:bg-stone-800',
65+
'bg-white dark:bg-stone-700',
6666
'shadow-[0_0_15px_rgba(0,0,0,0.1)]'
6767
)}
6868
>

components/sidebar/sidebar-container.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ export function SidebarContainer() {
8383
isMobile ? 'z-50' : 'z-30',
8484

8585
isExpanded
86-
? 'bg-stone-100/80 dark:bg-stone-800/80'
87-
: 'bg-stone-50/80 dark:bg-stone-900/80',
88-
'backdrop-blur-sm',
86+
? 'bg-stone-200 dark:bg-stone-700'
87+
: 'bg-stone-100 dark:bg-stone-800',
8988
'border-r-stone-300/60 dark:border-r-stone-700/50',
9089
'text-stone-700 dark:text-stone-300',
9190
!isExpanded &&
9291
!isMobile &&
93-
'hover:bg-stone-200 dark:hover:bg-stone-700',
92+
'hover:bg-stone-300 dark:hover:bg-stone-600',
9493
'select-none',
9594
(!isExpanded && !isMobile) || (isAnimating && !isMobile)
9695
? 'cursor-e-resize'

0 commit comments

Comments
 (0)