fix: adjust class names in Form components for improved layout handling
This commit is contained in:
parent
2746ea873b
commit
a2a3c777ac
|
|
@ -343,7 +343,10 @@ export const Form: React.FC<any> = ({
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<form
|
<form
|
||||||
className="flex flex-col "
|
className={cx(
|
||||||
|
"flex flex-col ",
|
||||||
|
typeof onFooter === "function" ? "" : "flex-grow"
|
||||||
|
)}
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
local.submit();
|
local.submit();
|
||||||
|
|
@ -374,7 +377,7 @@ export const Form: React.FC<any> = ({
|
||||||
{onFooter(local)}
|
{onFooter(local)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-grow flex-col"></div>
|
<></>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue