diff --git a/ee/tabby-ui/components/chat/code-references.tsx b/ee/tabby-ui/components/chat/code-references.tsx index 380346745720..a25e42db5a57 100644 --- a/ee/tabby-ui/components/chat/code-references.tsx +++ b/ee/tabby-ui/components/chat/code-references.tsx @@ -21,6 +21,7 @@ interface ContextReferencesProps { contexts: RelevantCodeContext[] userContexts?: RelevantCodeContext[] className?: string + triggerClassname?: string onContextClick?: ( context: RelevantCodeContext, isInWorkspace?: boolean @@ -40,6 +41,7 @@ export const CodeReferences = forwardRef< contexts, userContexts, className, + triggerClassname, onContextClick, enableTooltip, onTooltipClick, @@ -76,7 +78,9 @@ export const CodeReferences = forwardRef< onValueChange={setAccordionValue} > - + {`Read ${totalContextLength} file${ isMultipleReferences ? 's' : '' }`} diff --git a/ee/tabby-ui/components/chat/question-answer.tsx b/ee/tabby-ui/components/chat/question-answer.tsx index abd52db7128c..854ca6e72d54 100644 --- a/ee/tabby-ui/components/chat/question-answer.tsx +++ b/ee/tabby-ui/components/chat/question-answer.tsx @@ -128,9 +128,12 @@ function UserMessageCard(props: { message: UserMessage }) { {...props} >
@@ -325,7 +328,7 @@ function AssistantMessageCard(props: AssistantMessageCardProps) { )} {...rest} > -
+
@@ -355,6 +358,7 @@ function AssistantMessageCard(props: AssistantMessageCardProps) { // When onApplyInEditor is null, it means isInEditor === false, thus there's no need to showExternalLink showExternalLink={!!onApplyInEditor} highlightIndex={relevantCodeHighlightIndex} + triggerClassname="md:pt-0" /> {isLoading && !message?.message ? (