mirror of
https://github.com/vee1e/workorder-desk.git
synced 2026-09-01 09:50:13 +00:00
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:
parent
000586013b
commit
f117d78baf
1 changed files with 2 additions and 2 deletions
|
|
@ -67,8 +67,8 @@ export function CopilotPanel({ open, onClose }: { open: boolean; onClose: () =>
|
|||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'fixed inset-0 z-40 lg:left-auto',
|
||||
open ? 'pointer-events-auto' : 'pointer-events-none',
|
||||
'fixed inset-0 z-40',
|
||||
open ? 'pointer-events-auto' : 'pointer-events-none invisible',
|
||||
)}
|
||||
aria-hidden={!open}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue