Skip to content

Commit

Permalink
modalView quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Br2850 committed Oct 24, 2024
1 parent 51d49e8 commit 90bd83b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ const ModalBase: React.FC<ModalBaseProps> = ({

const modalButtonView: ModalButtonView = {
variant: props?.variant || "outlined",
label: props?.label || "Open Modal",
label: props?.label || "",
componentsProps: {
button: {
sx: {
height: props?.height || "100%",
width: props?.width || "100%",
padding: 1,
padding: props?.padding || 1,
minWidth: 0,
},
},
},
Expand Down Expand Up @@ -206,7 +207,7 @@ const ModalBase: React.FC<ModalBaseProps> = ({
id="modal-title"
variant="h5"
component="h5"
sx={{ textAlign: titleAlign }}
sx={{ textAlign: titleAlign, verticalAlign: "middle" }}
>
{modal?.icon && (
<MuiIconFont
Expand Down

0 comments on commit 90bd83b

Please sign in to comment.