@@ -188,17 +188,26 @@ const DrugSummaryForm = () => {
188188 </ div >
189189 ) : (
190190 chatLog . map ( ( message , index ) => (
191- < div key = { index } className = "flex flex-col gap-4 p-3" >
191+ < div key = { index } className = "flex flex-col gap-4 p-2" >
192+ { message . type === "user" ? null : (
193+ < div className = " flex items-center justify-between" >
194+ < div className = "flex items-center" >
195+ < span className = "font-bold text-sm font-quicksand text-sky-950" >
196+ Balancer
197+ </ span >
198+ </ div >
199+ </ div >
200+ ) }
192201 < div
193- className = { `${
202+ className = { `flex ${
194203 message . type === "user" ? "justify-end" : "justify-start"
195- } `}
204+ } `}
196205 >
197206 < div
198207 className = { `${
199208 message . type === "user"
200- ? "border border-black text-sm font-quicksand"
201- : "border bg-blue-50 bg-opacity-50 border-sky-400 text-sm font-quicksand "
209+ ? "border border-black text-sm font-quicksand shadow-md "
210+ : "border bg-blue-50 bg-opacity-50 border-sky-400 text-sm font-quicksand shadow-md "
202211 } rounded-lg p-2 relative`}
203212 >
204213 { typeof message . message === "string" ? (
@@ -215,7 +224,9 @@ const DrugSummaryForm = () => {
215224 message . message . llm_response . length === 0 && (
216225 < div className = "flex justify-start" >
217226 < div className = "items-center justify-center p-1" >
218- < span className = "thinking" > Let me think</ span >
227+ < span className = "thinking bg-blue-50 bg-opacity-50 text-sm font-quicksand" >
228+ Let me think
229+ </ span >
219230 </ div >
220231 </ div >
221232 ) }
@@ -243,26 +254,33 @@ const DrugSummaryForm = () => {
243254 ) )
244255 ) }
245256 </ div >
246- < form onSubmit = { handleSubmit } className = "p-3 font-quicksand mt-8" >
247- < div className = "relative flex items-center border border-sky-400 rounded-lg bg-white shadow-sm px-3 py-2" >
248- < textarea
249- ref = { textareaRef }
250- placeholder = "Ask the document a question..."
251- className = "w-full resize-none bg-transparent outline-none text-gray-700 placeholder-gray-400"
252- rows = { 1 }
253- value = { inputValue }
254- onChange = { handleInputChange }
255- onKeyDown = { handleKeyDown }
256- disabled = { isStreaming }
257- style = { { height : `${ inputHeight } px` , maxHeight : "150px" } }
258- />
259- < div className = "absolute left-3 bottom-full mb-1 text-xs text-gray-500 flex items-center gap-2" >
260- < span > Balancer 1.0</ span >
261- < span > •</ span >
262- < span > { inputValue . trim ( ) . split ( / \s + / ) . length } words</ span >
257+ < div className = "p-3 font-quicksand mt-8 bg-gray-100 rounded-2xl shadow-inner" >
258+ < form onSubmit = { handleSubmit } className = "space-y-2" >
259+ < div className = "relative flex items-center border border-gray-300 rounded-xl bg-white shadow-sm px-4 py-3" >
260+ < textarea
261+ ref = { textareaRef }
262+ placeholder = "Ask the document a question..."
263+ className = "w-full resize-none bg-transparent outline-none text-sm font-quicksand placeholder-gray-500"
264+ rows = { 1 }
265+ value = { inputValue }
266+ onChange = { handleInputChange }
267+ onKeyDown = { handleKeyDown }
268+ disabled = { isStreaming }
269+ style = { { height : `${ inputHeight } px` , maxHeight : "150px" } }
270+ />
263271 </ div >
264- </ div >
265- </ form >
272+
273+ < div className = "text-xs text-gray-500 flex items-center justify-between px-1" >
274+ < div className = "flex items-center gap-2" >
275+ < span > Balancer 1.0</ span >
276+ < span > •</ span >
277+ < span >
278+ { inputValue . trim ( ) . split ( / \s + / ) . filter ( Boolean ) . length } words
279+ </ span >
280+ </ div >
281+ </ div >
282+ </ form >
283+ </ div >
266284 </ div >
267285 </ div >
268286 ) ;
0 commit comments