mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-11 12:04:24 +01:00
🔧 fix: Update z-index for ImagePreview modal components (#11714)
- Increased z-index values for the DialogPrimitive overlay and content in ImagePreview.tsx to ensure proper stacking order and visibility of modal elements. This change enhances the user experience by preventing modal content from being obscured by other UI elements.
This commit is contained in:
parent
8da3c38780
commit
4ddaab68a1
1 changed files with 2 additions and 2 deletions
|
|
@ -158,11 +158,11 @@ const ImagePreview = ({
|
|||
<DialogPrimitive.Root open={isModalOpen} onOpenChange={handleOpenChange}>
|
||||
<DialogPrimitive.Portal>
|
||||
<DialogPrimitive.Overlay
|
||||
className="fixed inset-0 z-[100] bg-black/90"
|
||||
className="fixed inset-0 z-[250] bg-black/90"
|
||||
onClick={handleBackgroundClick}
|
||||
/>
|
||||
<DialogPrimitive.Content
|
||||
className="fixed inset-0 z-[100] flex items-center justify-center outline-none"
|
||||
className="fixed inset-0 z-[250] flex items-center justify-center outline-none"
|
||||
onOpenAutoFocus={(e) => {
|
||||
e.preventDefault();
|
||||
closeButtonRef.current?.focus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue