Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 30, 2024
1 parent aaaf8f9 commit 4efff91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ee/tabby-ui/app/search/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import {
} from '@/components/ui/tooltip'
import { ButtonScrollToBottom } from '@/components/button-scroll-to-bottom'
import { BANNER_HEIGHT, useShowDemoBanner } from '@/components/demo-banner'
import LoadingWrapper from '@/components/loading-wrapper'
import NotFoundPage from '@/components/not-found-page'
import TextAreaSearch from '@/components/textarea-search'

Expand All @@ -92,7 +93,6 @@ import { MessagesSkeleton } from './messages-skeleton'
import { SearchContext } from './search-context'
import { ConversationMessage, ConversationPair } from './types'
import { UserMessageSection } from './user-message-section'
import LoadingWrapper from '@/components/loading-wrapper'

export const SOURCE_CARD_STYLE = {
compress: 5.3,
Expand Down Expand Up @@ -729,12 +729,10 @@ export function Search() {
? { height: `calc(100vh - ${BANNER_HEIGHT})` }
: { height: '100vh' }


if (!isChatEnabled) {
return null
}


if (isReady && (formatedThreadError || threadMessagesError)) {
return (
<ThreadMessagesErrorView
Expand Down Expand Up @@ -789,12 +787,12 @@ export function Search() {
/>
<LoadingWrapper
loading={isFetchingMessages || threadMessagesStale}
fallback={(
fallback={
<div className="mx-auto mt-24 w-full space-y-10 px-4 pb-32 lg:max-w-4xl lg:px-0">
<MessagesSkeleton />
<MessagesSkeleton />
</div>
)}
}
>
<main className="h-[calc(100%-4rem)] pb-8 lg:pb-0">
<ScrollArea className="h-full" ref={contentContainerRef}>
Expand All @@ -818,7 +816,9 @@ export function Search() {
key={pair.answer.id}
className="pb-8 pt-2"
message={pair.answer}
clientCode={pair.question?.attachment?.clientCode}
clientCode={
pair.question?.attachment?.clientCode
}
isLoading={isLoading && isLastMessage}
isLastAssistantMessage={isLastMessage}
showRelatedQuestion={isLastMessage}
Expand Down

0 comments on commit 4efff91

Please sign in to comment.