mirror of https://github.com/buster-so/buster.git
finalize tooltip cache
This commit is contained in:
parent
27de636296
commit
d0ff81997e
|
@ -32,7 +32,7 @@ interface UseTooltipOptionsProps {
|
|||
colors: string[];
|
||||
}
|
||||
|
||||
const MAX_TOOLTIP_CACHE_SIZE = 20;
|
||||
const MAX_TOOLTIP_CACHE_SIZE = 13;
|
||||
|
||||
export const useTooltipOptions = ({
|
||||
columnLabelFormats,
|
||||
|
|
|
@ -31,9 +31,9 @@ export const ChatResponseMessages: React.FC<ChatResponseMessagesProps> = React.m
|
|||
<MessageContainer
|
||||
className="group flex w-full flex-col space-y-3 overflow-hidden"
|
||||
hideAvatar={hideAvatar}
|
||||
isCompletedStream={isCompletedStream}
|
||||
isFinishedReasoning={!!finalReasoningMessage}
|
||||
hasReasoningMessage={!!lastReasoningMessageId}>
|
||||
isCompletedStream={false}
|
||||
isFinishedReasoning={false}
|
||||
hasReasoningMessage={false}>
|
||||
{showReasoningMessage && (
|
||||
<ChatResponseReasoning
|
||||
reasoningMessageId={lastReasoningMessageId}
|
||||
|
|
|
@ -13,9 +13,9 @@ interface MessageContainerProps {
|
|||
onMouseEnter?: () => void;
|
||||
onMouseLeave?: () => void;
|
||||
hideAvatar?: boolean;
|
||||
isCompletedStream: boolean;
|
||||
isFinishedReasoning: boolean;
|
||||
hasReasoningMessage: boolean;
|
||||
isCompletedStream?: boolean;
|
||||
isFinishedReasoning?: boolean;
|
||||
hasReasoningMessage?: boolean;
|
||||
}
|
||||
|
||||
export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps>(
|
||||
|
@ -27,9 +27,9 @@ export const MessageContainer = forwardRef<HTMLDivElement, MessageContainerProps
|
|||
senderAvatar,
|
||||
className = '',
|
||||
hideAvatar = false,
|
||||
hasReasoningMessage,
|
||||
isCompletedStream,
|
||||
isFinishedReasoning,
|
||||
hasReasoningMessage = true,
|
||||
isCompletedStream = true,
|
||||
isFinishedReasoning = true,
|
||||
onMouseEnter,
|
||||
onMouseLeave
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue