File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ RUN BACKEND_API_URL=$BACKEND_API_URL \
2727 CHUNK_SIZE=$CHUNK_SIZE \
2828 ENV=$ENV \
2929 LARGE_FILE_SIZE=${LARGE_FILE_SIZE} \
30+ CHAT_MODES=$CHAT_MODES \
3031 yarn run build
3132
3233# Step 2: Serve the application using Nginx
Original file line number Diff line number Diff line change @@ -301,16 +301,14 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
301301 < Widget
302302 header = ''
303303 isElevated = { true }
304- className = { `p-4 self-start ${ isFullScreen ? 'max-w-[55%]' : '' } ${
305- chat . user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
306- } `}
304+ className = { `p-4 self-start ${ isFullScreen ? 'max-w-[55%]' : '' } ${ chat . user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
305+ } `}
307306 >
308307 < div
309- className = { `${
310- listMessages [ index ] . isLoading && index === listMessages . length - 1 && chat . user == 'chatbot'
311- ? 'loader'
312- : ''
313- } `}
308+ className = { `${ listMessages [ index ] . isLoading && index === listMessages . length - 1 && chat . user == 'chatbot'
309+ ? 'loader'
310+ : ''
311+ } `}
314312 >
315313 < ReactMarkdown > { chat . message } </ ReactMarkdown >
316314 </ div >
@@ -397,15 +395,15 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
397395 < div className = 'n-bg-palette-neutral-bg-weak flex gap-2.5 bottom-0 p-2.5 w-full' >
398396 < form onSubmit = { handleSubmit } className = 'flex gap-2.5 w-full' >
399397 < TextInput
400- className = 'n-bg-palette-neutral-bg-default flex-grow-7 w-full '
398+ className = 'n-bg-palette-neutral-bg-default flex-grow-7 w-[70%] '
401399 aria-label = 'chatbot-input'
402400 type = 'text'
403401 value = { inputMessage }
404402 fluid
405403 onChange = { handleInputChange }
406404 />
407- < Button type = 'submit' disabled = { loading } >
408- Ask
405+ < Button type = 'submit' disabled = { loading } size = 'medium' >
406+ { buttonCaptions . ask } { selectedRows != undefined && selectedRows . length > 0 && `( ${ selectedRows . length } )` }
409407 </ Button >
410408 </ form >
411409 </ div >
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export const buttonCaptions = {
154154 details : 'Details' ,
155155 continueSettings : 'Continue' ,
156156 clearSettings : 'Clear Settings' ,
157+ ask :'Ask'
157158} ;
158159
159160export const taskParam : string [ ] = [ 'update_similarity_graph' , 'create_fulltext_index' , 'create_entity_embedding' ] ;
You can’t perform that action at this time.
0 commit comments