added z-index for dialog (#1824)
This commit is contained in:
parent
90a22eda7d
commit
a519206db7
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ export function Dialog(props: DialogProps) {
|
||||||
const { children, ...other } = props;
|
const { children, ...other } = props;
|
||||||
return (
|
return (
|
||||||
<DialogPrimitive.Root {...other}>
|
<DialogPrimitive.Root {...other}>
|
||||||
<DialogPrimitive.Overlay className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
|
<DialogPrimitive.Overlay className="fixed inset-0 z-40 bg-gray-500 bg-opacity-75 transition-opacity" />
|
||||||
{children}
|
{children}
|
||||||
</DialogPrimitive.Root>
|
</DialogPrimitive.Root>
|
||||||
);
|
);
|
||||||
|
@ -17,7 +17,7 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||||
({ children, ...props }, forwardedRef) => (
|
({ children, ...props }, forwardedRef) => (
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
{...props}
|
{...props}
|
||||||
className="fixed left-1/2 top-1/2 min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded bg-white p-6 text-left shadow-xl sm:w-full sm:max-w-lg sm:align-middle"
|
className="fixed left-1/2 top-1/2 z-50 min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded bg-white p-6 text-left shadow-xl sm:w-full sm:max-w-lg sm:align-middle"
|
||||||
ref={forwardedRef}>
|
ref={forwardedRef}>
|
||||||
{children}
|
{children}
|
||||||
</DialogPrimitive.Content>
|
</DialogPrimitive.Content>
|
||||||
|
|
|
@ -317,7 +317,7 @@ export default function Shell(props: {
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
{/* show bottom navigation for md and smaller (tablet and phones) */}
|
{/* show bottom navigation for md and smaller (tablet and phones) */}
|
||||||
<nav className="bottom-nav fixed bottom-0 z-40 flex w-full bg-white shadow md:hidden">
|
<nav className="bottom-nav fixed bottom-0 z-30 flex w-full bg-white shadow md:hidden">
|
||||||
{/* note(PeerRich): using flatMap instead of map to remove settings from bottom nav */}
|
{/* note(PeerRich): using flatMap instead of map to remove settings from bottom nav */}
|
||||||
{navigation.flatMap((item, itemIdx) =>
|
{navigation.flatMap((item, itemIdx) =>
|
||||||
item.href === "/settings/profile" ? (
|
item.href === "/settings/profile" ? (
|
||||||
|
|
Loading…
Reference in a new issue