Fixed dialog box styles issue

This commit is contained in:
Prozilla 2023-12-30 11:15:01 +01:00
parent af5a1526fa
commit 4e1b2376f0
No known key found for this signature in database
GPG key ID: 5858DFE71CAF31EE

View file

@ -1,5 +1,6 @@
import { DIALOG_CONTENT_TYPES } from "../../../config/modals.config.js";
import { WindowedModal } from "../_utils/WindowedModal.jsx";
import styles from "./DialogBox.module.css";
export function DialogBox({ modal, params, children, ...props }) {
const onClick = (event) => {
@ -14,6 +15,8 @@ export function DialogBox({ modal, params, children, ...props }) {
};
return <WindowedModal modal={modal} params={params} onClick={onClick} {...props}>
{children}
<div className={styles["Dialog-content"]}>
{children}
</div>
</WindowedModal>;
}