Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit c48ea65

Browse files
committed
Set chat component on sidebar to proper color
1 parent 8e76474 commit c48ea65

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/components/Chat/ChatMessages.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useRef, useEffect, useCallback } from 'react'
22
import '../../styles/chat.css'
3-
import { Spinner, YStack, ScrollView } from 'tamagui'
3+
import { Spinner, YStack } from 'tamagui'
44
import { Chat, AgentConfig, LoadingState, ReorChatMessage } from '../../lib/llm/types'
55
import ChatInput from './ChatInput'
66
import UserMessage from './MessageComponents/UserMessage'
@@ -116,10 +116,7 @@ const ChatMessages: React.FC<ChatMessagesProps> = ({
116116
}, [shouldAutoScroll, scrollToBottom])
117117

118118
return (
119-
<YStack
120-
flex={1}
121-
backgroundColor={activePanel && showEditor ? ( '$gray3' ) : ( '$background' )}
122-
>
119+
<YStack flex={1} backgroundColor={activePanel && showEditor ? '$gray3' : '$background'}>
123120
<div className="grow overflow-auto" ref={chatContainerRef} onScroll={handleScroll}>
124121
<div className="flex flex-col items-center gap-3 p-4">
125122
<div className="w-full max-w-3xl">
@@ -145,10 +142,7 @@ const ChatMessages: React.FC<ChatMessagesProps> = ({
145142
</div>
146143
</div>
147144

148-
<YStack
149-
width="100%"
150-
padding="$4"
151-
>
145+
<YStack width="100%" padding="$4">
152146
<ChatInput
153147
userTextFieldInput={userTextFieldInput ?? ''}
154148
setUserTextFieldInput={setUserTextFieldInput}

src/components/Chat/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { Chat, AgentConfig, LoadingState } from '../../lib/llm/types'
1414
import { useChatContext } from '@/contexts/ChatContext'
1515
import resolveLLMClient from '@/lib/llm/client'
1616
import { appendToolCallsAndAutoExecuteTools, convertToolConfigToZodSchema } from '../../lib/llm/tools/utils'
17-
import { useContentContext } from '@/contexts/ContentContext'
1817

1918
const ChatComponent: React.FC = () => {
2019
const [loadingState, setLoadingState] = useState<LoadingState>('idle')

0 commit comments

Comments
 (0)