Fix modal z index issue in settings (#7578)
* feat: add z-index to modal * feat: reduce z-index --------- Co-authored-by: Peer Richelsen <peeroke@gmail.com>pull/7448/head^2
parent
34d3bdf868
commit
d28c914d3c
|
@ -174,7 +174,7 @@ const SettingsSidebarContainer = ({
|
||||||
return (
|
return (
|
||||||
<nav
|
<nav
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"no-scrollbar fixed bottom-0 left-0 top-0 z-50 flex max-h-screen w-56 flex-col space-y-1 overflow-x-hidden overflow-y-scroll bg-gray-50 px-2 pb-3 transition-transform max-lg:z-10 lg:sticky lg:flex",
|
"no-scrollbar fixed bottom-0 left-0 top-0 z-20 flex max-h-screen w-56 flex-col space-y-1 overflow-x-hidden overflow-y-scroll bg-gray-50 px-2 pb-3 transition-transform max-lg:z-10 lg:sticky lg:flex",
|
||||||
className,
|
className,
|
||||||
navigationIsOpenedOnMobile
|
navigationIsOpenedOnMobile
|
||||||
? "translate-x-0 opacity-100"
|
? "translate-x-0 opacity-100"
|
||||||
|
|
|
@ -73,11 +73,11 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||||
({ children, title, Icon, enableOverflow, type = "creation", ...props }, forwardedRef) => {
|
({ children, title, Icon, enableOverflow, type = "creation", ...props }, forwardedRef) => {
|
||||||
return (
|
return (
|
||||||
<DialogPrimitive.Portal>
|
<DialogPrimitive.Portal>
|
||||||
<DialogPrimitive.Overlay className="fadeIn fixed inset-0 bg-gray-500 bg-opacity-80 transition-opacity" />
|
<DialogPrimitive.Overlay className="fadeIn fixed inset-0 z-50 bg-gray-500 bg-opacity-80 transition-opacity" />
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
{...props}
|
{...props}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"fadeIn fixed left-1/2 top-1/2 min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded bg-white text-left shadow-xl focus-visible:outline-none sm:w-full sm:align-middle",
|
"fadeIn fixed left-1/2 top-1/2 z-50 min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded bg-white text-left shadow-xl focus-visible:outline-none sm:w-full sm:align-middle",
|
||||||
props.size == "xl"
|
props.size == "xl"
|
||||||
? "p-8 sm:max-w-[90rem]"
|
? "p-8 sm:max-w-[90rem]"
|
||||||
: props.size == "lg"
|
: props.size == "lg"
|
||||||
|
|
Loading…
Reference in New Issue