@@ -78,25 +78,25 @@ const ChatPopover = memo(
7878 const isEmpty = messages . length === 0 ;
7979
8080 return (
81- < div className = "flex h-[500px] w-[380px] flex-col rounded-xl border border-gray-200 bg-white shadow-lg" >
81+ < div className = "flex h-[500px] w-[380px] flex-col rounded-xl border border-gray-200 dark:border-dark-black-700 bg-white dark:bg-dark-black-800 shadow-lg dark:shadow-dark-card " >
8282 { /* Header */ }
83- < div className = "flex items-center justify-between border-b border-gray-200 px-4 py-3" >
84- < h3 className = "typo-para-medium font-semibold text-gray-800" >
83+ < div className = "flex items-center justify-between border-b border-gray-200 dark:border-dark-black-700 px-4 py-3" >
84+ < h3 className = "typo-para-medium font-semibold text-gray-800 dark:text-dark-gray-400 " >
8585 { t ( 'ai-chat:title' ) }
8686 </ h3 >
8787 < div className = "flex items-center gap-2" >
8888 { messages . length > 0 && (
8989 < button
9090 type = "button"
91- className = "rounded typo-para-tiny text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-primary-300"
91+ className = "rounded typo-para-tiny text-gray-400 dark:text-dark-gray-200 hover:text-gray-600 dark:hover:text-dark-gray-400 focus:outline-none focus:ring-2 focus:ring-primary-300"
9292 onClick = { onClear }
9393 >
9494 { t ( 'ai-chat:clear' ) }
9595 </ button >
9696 ) }
9797 < button
9898 type = "button"
99- className = "rounded text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-primary-300"
99+ className = "rounded text-gray-400 dark:text-dark-gray-200 hover:text-gray-600 dark:hover:text-dark-gray-400 focus:outline-none focus:ring-2 focus:ring-primary-300"
100100 onClick = { onClose }
101101 aria-label = { t ( 'ai-chat:close' ) }
102102 >
@@ -107,7 +107,7 @@ const ChatPopover = memo(
107107
108108 { /* Flag Selector */ }
109109 { showFlagSelector && onSelectFlag && (
110- < div className = "border-b border-gray-200 px-4 py-2" >
110+ < div className = "border-b border-gray-200 dark:border-dark-black-700 px-4 py-2" >
111111 < FlagSelector
112112 selectedFlagId = { selectedFlagId }
113113 onSelectFlag = { onSelectFlag }
@@ -119,12 +119,12 @@ const ChatPopover = memo(
119119 < ScrollArea className = "flex-1 px-4 py-3" >
120120 { isEmpty ? (
121121 < div className = "flex flex-col gap-4" >
122- < p className = "typo-para-small text-gray-500" >
122+ < p className = "typo-para-small text-gray-500 dark:text-dark-gray-200 " >
123123 { t ( 'ai-chat:welcome' ) }
124124 </ p >
125125 { suggestions . length > 0 && (
126126 < div className = "flex flex-col gap-2" >
127- < p className = "typo-para-tiny font-medium text-gray-600" >
127+ < p className = "typo-para-tiny font-medium text-gray-600 dark:text-dark-gray-200 " >
128128 { t ( 'ai-chat:suggestions-title' ) }
129129 </ p >
130130 { suggestions . map ( s => (
@@ -152,15 +152,15 @@ const ChatPopover = memo(
152152 'max-w-[90%] rounded-lg px-3 py-2' ,
153153 msg . role === 'user'
154154 ? 'ml-auto bg-primary-500 text-white'
155- : 'mr-auto bg-gray-100 text-gray-700'
155+ : 'mr-auto bg-gray-100 dark:bg-dark-black-700 text-gray-700 dark:text-dark-gray-300 '
156156 ) }
157157 >
158158 { msg . role === 'user' ? (
159159 < p className = "typo-para-small whitespace-pre-wrap" >
160160 { msg . content }
161161 </ p >
162162 ) : msg . content ? (
163- < div className = "typo-para-small prose-sm prose-gray max-w-none [&_a]:text-primary-500 [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_ul]:list-disc [&_ul]:pl-4 [&_p]:my-1 [&_li]:my-0.5 [&_h1]:text-base [&_h1]:font-bold [&_h1]:my-2 [&_h2]:text-sm [&_h2]:font-bold [&_h2]:my-1.5 [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:my-1 [&_code]:rounded [&_code]:bg-gray-200 [&_code]:px-1 [&_code]:text-xs [&_pre]:rounded [&_pre]:bg-gray-200 [&_pre]:p-2 [&_pre]:text-xs [&_pre]:overflow-x-auto [&_blockquote]:border-l-2 [&_blockquote]:border-gray-300 [&_blockquote]:pl-2 [&_blockquote]:italic" >
163+ < div className = "typo-para-small prose-sm prose-gray max-w-none [&_a]:text-primary-500 [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_ul]:list-disc [&_ul]:pl-4 [&_p]:my-1 [&_li]:my-0.5 [&_h1]:text-base [&_h1]:font-bold [&_h1]:my-2 [&_h2]:text-sm [&_h2]:font-bold [&_h2]:my-1.5 [&_h3]:text-sm [&_h3]:font-semibold [&_h3]:my-1 [&_code]:rounded [&_code]:bg-gray-200 dark: [&_code]:bg-dark-black-900 [&_code]: px-1 [&_code]:text-xs [&_pre]:rounded [&_pre]:bg-gray-200 dark: [&_pre]:bg-dark-black-900 [&_pre]: p-2 [&_pre]:text-xs [&_pre]:overflow-x-auto [&_blockquote]:border-l-2 [&_blockquote]:border-gray-300 dark:[&_blockquote]:border-dark-black-700 [&_blockquote]:pl-2 [&_blockquote]:italic" >
164164 < Markdown > { msg . content } </ Markdown >
165165 </ div >
166166 ) : (
@@ -180,7 +180,7 @@ const ChatPopover = memo(
180180 ) }
181181 { errorKey && (
182182 < div
183- className = "mt-2 rounded-lg bg-accent-red-50 px-3 py-2"
183+ className = "mt-2 rounded-lg bg-accent-red-50 dark:bg-accent-red-900/30 px-3 py-2"
184184 role = "alert"
185185 >
186186 < p className = "typo-para-tiny text-accent-red-500" >
@@ -198,7 +198,7 @@ const ChatPopover = memo(
198198 { /* Input */ }
199199 < form
200200 onSubmit = { handleSubmit }
201- className = "flex items-center gap-2 border-t border-gray-200 px-4 py-3"
201+ className = "flex items-center gap-2 border-t border-gray-200 dark:border-dark-black-700 px-4 py-3"
202202 >
203203 < input
204204 type = "text"
@@ -210,10 +210,10 @@ const ChatPopover = memo(
210210 disabled = { isStreaming }
211211 maxLength = { MAX_INPUT_LENGTH }
212212 className = { cn (
213- 'flex-1 rounded-lg border border-gray-200 px-3 py-2' ,
214- 'typo-para-small text-gray-700 placeholder:text-gray-400' ,
213+ 'flex-1 rounded-lg border border-gray-200 dark:border-dark-black-700 dark:bg-dark-black-900 px-3 py-2' ,
214+ 'typo-para-small text-gray-700 dark:text-dark-gray-300 placeholder:text-gray-400 dark:placeholder:text-dark-gray-200 ' ,
215215 'focus:border-primary-300 focus:outline-none focus:ring-1 focus:ring-primary-300' ,
216- 'disabled:cursor-not-allowed disabled:bg-gray-50'
216+ 'disabled:cursor-not-allowed disabled:bg-gray-50 dark:disabled:bg-dark-black-700 '
217217 ) }
218218 />
219219 < Button
0 commit comments