Skip to content

Commit

Permalink
fix(ui): display loading skeleton during answer generation (#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Nov 4, 2024
1 parent 7276805 commit 48419e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/tabby-ui/app/search/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ export function Search() {
key={message.id}
className="pb-8 pt-2"
message={message}
isLoading={isLoading && isLastMessage}
isLastAssistantMessage={isLastMessage}
showRelatedQuestion={isLastMessage}
isDeletable={!isLoading && messages.length > 2}
Expand Down Expand Up @@ -828,9 +829,8 @@ export function Search() {
)}
>
<div
className={cn('absolute flex items-center gap-4 ', {
'-top-10': isThreadOwner
})}
className={cn('absolute flex items-center gap-4')}
style={isThreadOwner ? { top: '-2.5rem' } : undefined}
>
{stopButtonVisible && (
<Button
Expand Down

0 comments on commit 48419e6

Please sign in to comment.