diff --git a/src/components/insights/coach-panel/coach-drawer.tsx b/src/components/insights/coach-panel/coach-drawer.tsx index 86f42a52e..51199a7ef 100644 --- a/src/components/insights/coach-panel/coach-drawer.tsx +++ b/src/components/insights/coach-panel/coach-drawer.tsx @@ -23,6 +23,7 @@ import { import { cn } from "@/lib/utils"; import { useTranslations } from "@/lib/i18n/context"; import { useCoachPrefs } from "@/hooks/use-coach-prefs"; +import { useIsMobile } from "@/hooks/use-is-mobile"; import { CoachDrawerBody } from "./coach-drawer-body"; import { CoachInput } from "./coach-input"; @@ -132,6 +133,13 @@ export function CoachDrawer({ composer, }: CoachDrawerProps) { const { t } = useTranslations(); + // v1.4.27 R3d MB1 — below the `sm` breakpoint (640 px) the Coach + // drawer slides up from the bottom edge of the viewport instead of + // sliding in from the right. Right-side slide makes the back-arrow + // / close-X drift far from the user's thumb on a phone; bottom-up + // keeps the drawer chrome reachable. Above `sm` the drawer keeps + // its existing right-side slide and `sm:max-w-[720px]` cap. + const isPhoneViewport = useIsMobile("sm"); const [currentConversationId, setCurrentConversationId] = useState< string | null @@ -256,7 +264,10 @@ export function CoachDrawer({ return (