mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-23 02:36:12 +01:00
📏 fix: Dropdown Menu Z-Index Adjustments (#11441)
This commit is contained in:
parent
e608c652e5
commit
828c2b2048
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ export const DialogOverlay = React.forwardRef<
|
|||
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
|
||||
>(({ className, style, ...props }, ref) => {
|
||||
const depth = React.useContext(DialogDepthContext);
|
||||
const overlayZIndex = 50 + (depth - 1) * 60;
|
||||
const overlayZIndex = 130 + (depth - 1) * 60;
|
||||
|
||||
return (
|
||||
<DialogPrimitive.Overlay
|
||||
|
|
@ -94,7 +94,7 @@ const DialogContent = React.forwardRef<
|
|||
ref,
|
||||
) => {
|
||||
const depth = React.useContext(DialogDepthContext);
|
||||
const contentZIndex = 100 + (depth - 1) * 60;
|
||||
const contentZIndex = 140 + (depth - 1) * 60;
|
||||
|
||||
/* Handle Escape key to prevent closing dialog if a tooltip or dropdown has focus
|
||||
(this is a workaround in order to achieve WCAG compliance which requires
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue