fix(frontend): keep the copilot overlay full-width so the drawer renders on desktop

The overlay used 'fixed inset-0 lg:left-auto', which lets the container
shrink-to-fit on desktop and collapse the drawer to a sliver (or nothing),
so the open state changed but nothing was visible. Drop left:auto and hide
the overlay fully when closed (visibility + pointer-events).
This commit is contained in:
lakshit verma 2026-08-19 22:05:20 +05:30
parent 000586013b
commit f117d78baf
No known key found for this signature in database

View file

@ -67,8 +67,8 @@ export function CopilotPanel({ open, onClose }: { open: boolean; onClose: () =>
return ( return (
<div <div
className={cn( className={cn(
'fixed inset-0 z-40 lg:left-auto', 'fixed inset-0 z-40',
open ? 'pointer-events-auto' : 'pointer-events-none', open ? 'pointer-events-auto' : 'pointer-events-none invisible',
)} )}
aria-hidden={!open} aria-hidden={!open}
> >