@@ -76,7 +76,7 @@ const TablePreview: FC<{ type: string, data: TableData, text: string }> = ({ typ
76
76
setShowSQL ( status => ! status ) ;
77
77
} , [ ] ) ;
78
78
79
- return < div className = "flex flex-col w-full group/table-preview gap-2 relative" >
79
+ return < div className = "flex flex-col w-[calc(100%-50px)] group/table-preview gap-2 relative" >
80
80
< div className = "absolute -top-3 -left-3 opacity-0 group-hover/table-preview:opacity-100 transition-all z-[1]" >
81
81
< ActionButton containerClassName = "w-8 h-8" className = "w-5 h-5" icon = { cloneElement ( showSQL ? Icons . Tables : Icons . Code , {
82
82
className : "w-6 h-6 stroke-white" ,
@@ -132,7 +132,6 @@ export const ChatPage: FC = () => {
132
132
const scrollContainerRef = useRef < HTMLDivElement > ( null ) ;
133
133
const schema = useAppSelector ( state => state . database . schema ) ;
134
134
const [ currentSearchIndex , setCurrentSearchIndex ] = useState < number > ( ) ;
135
- const dispatch = useAppDispatch ( ) ;
136
135
137
136
const loading = useMemo ( ( ) => {
138
137
return getAIChatLoading || getAIModelsLoading ;
@@ -487,6 +486,7 @@ export const ChatPage: FC = () => {
487
486
: < div className = "pl-4" /> }
488
487
< div className = { classNames ( "text-neutral-800 dark:text-neutral-300 px-4 py-2 rounded-xl whitespace-pre-wrap" , {
489
488
"bg-neutral-600/5 dark:bg-[#2C2F33]" : chat . isUserInput ,
489
+ "-ml-2" : ! chat . isUserInput && chats [ i - 1 ] ?. isUserInput ,
490
490
} ) } >
491
491
{ chat . Text }
492
492
</ div >
@@ -531,7 +531,7 @@ export const ChatPage: FC = () => {
531
531
< Input value = { query } setValue = { setQuery } placeholder = "Talk to me..." onSubmit = { handleSubmitQuery } inputProps = { {
532
532
disabled : disableChat ,
533
533
onKeyUp : handleKeyUp ,
534
- autoFocus : true ,
534
+ ref : ( input ) => input ?. focus ( )
535
535
} } />
536
536
</ div >
537
537
{
0 commit comments