diff --git a/packages/gitbook/src/components/AIChat/AIChatButton.tsx b/packages/gitbook/src/components/AIChat/AIChatButton.tsx index 4c7ef06a6..77d471601 100644 --- a/packages/gitbook/src/components/AIChat/AIChatButton.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatButton.tsx @@ -18,7 +18,7 @@ export function AIChatButton(props: { }) { const { assistant, showLabel = true, withShortcut = true } = props; const language = useLanguage(); - const isMobile = useIsMobile(MOBILE_BREAKPOINT, '#header-content'); + const isMobile = useIsMobile(MOBILE_BREAKPOINT, '[data-gb-header-content]'); return (