diff --git a/ee/tabby-ui/app/search/components/user-message-section.tsx b/ee/tabby-ui/app/search/components/user-message-section.tsx index 9ccb396113ee..c2950d5156cc 100644 --- a/ee/tabby-ui/app/search/components/user-message-section.tsx +++ b/ee/tabby-ui/app/search/components/user-message-section.tsx @@ -18,6 +18,10 @@ export function UserMessageSection({ }: QuestionBlockProps) { const { contextInfo, fetchingContextInfo } = useContext(SearchContext) const { supportsOnApplyInEditorV2 } = useContext(ChatContext) + const contentLen = message.content?.length + const fontSizeClassname = + contentLen > 400 ? 'text-base' : contentLen > 200 ? 'text-lg' : 'text-xl' + return (