Skip to content

Commit

Permalink
Reverted inset, was not the problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwaalkens committed Oct 24, 2023
1 parent a9cd344 commit a67e3a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/Marine2/components/ui/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Props {

const Frame: FC<Props> = ({ children, open = true, onClose, className }) => {
const classes = classNames(
"fixed inset-x-0 inset-y-0 z-10 p-4 md:p-8 text-neutral-600 modal dark:text-white items-center justify-center",
"fixed inset-0 z-10 p-4 md:p-8 text-neutral-600 modal dark:text-white items-center justify-center",
`${open ? "flex" : "hidden"}` // control visibility via `open` attribute (or render conditionally)
)
return (
Expand Down Expand Up @@ -41,9 +41,7 @@ const Body: FC<BodyProps> = ({ children, className, variant = "default" }) => {
}

const Footer: FC = ({ children }) => (
<div className="flex justify-between border-t border-victron-darkGray-200 text-base">
{children}
</div>
<div className="flex justify-between border-t border-victron-darkGray-200 text-base">{children}</div>
)

export const Modal = { Frame, Body, Footer }

0 comments on commit a67e3a4

Please sign in to comment.