diff --git a/.changeset/popular-rivers-bow.md b/.changeset/popular-rivers-bow.md new file mode 100644 index 000000000..0d19f4d9a --- /dev/null +++ b/.changeset/popular-rivers-bow.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix search input styling & text cutoff diff --git a/packages/gitbook/src/components/AIChat/AIChatButton.tsx b/packages/gitbook/src/components/AIChat/AIChatButton.tsx index f23300a3f..3efa6a4d8 100644 --- a/packages/gitbook/src/components/AIChat/AIChatButton.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatButton.tsx @@ -1,4 +1,6 @@ 'use client'; +import { useLanguage } from '@/intl/client'; +import { t } from '@/intl/translate'; import { tcls } from '@/lib/tailwind'; import { useAIChatController, useAIChatState } from '../AI/useAIChat'; import { Button } from '../primitives'; @@ -13,6 +15,7 @@ export function AIChatButton(props: { trademark: boolean }) { const { trademark } = props; const chatController = useAIChatController(); const chat = useAIChatState(); + const language = useLanguage(); return (