Fixed modals

This commit is contained in:
Lucas Oliveira 2024-03-31 22:09:29 +03:00
commit baf1a62280
2 changed files with 6 additions and 6 deletions

View file

@ -115,7 +115,7 @@ function BaseModal({
break; break;
case "smaller": case "smaller":
minWidth = "min-w-[40vw]"; minWidth = "min-w-[40vw]";
height = "h-[11rem]"; height = "";
break; break;
case "smaller-h-full": case "smaller-h-full":
minWidth = "min-w-[40vw]"; minWidth = "min-w-[40vw]";
@ -123,7 +123,7 @@ function BaseModal({
break; break;
case "small": case "small":
minWidth = "min-w-[40vw]"; minWidth = "min-w-[40vw]";
height = "h-[40vh]"; height = "";
break; break;
case "small-h-full": case "small-h-full":
minWidth = "min-w-[40vw]"; minWidth = "min-w-[40vw]";
@ -131,7 +131,7 @@ function BaseModal({
break; break;
case "medium": case "medium":
minWidth = "min-w-[60vw]"; minWidth = "min-w-[60vw]";
height = "h-[60vh]"; height = "";
break; break;
case "medium-h-full": case "medium-h-full":
minWidth = "min-w-[60vw]"; minWidth = "min-w-[60vw]";
@ -155,7 +155,7 @@ function BaseModal({
break; break;
default: default:
minWidth = "min-w-[80vw]"; minWidth = "min-w-[80vw]";
height = "h-[80vh]"; height = "";
break; break;
} }
@ -193,7 +193,7 @@ function BaseModal({
{headerChild} {headerChild}
</div> </div>
<div <div
className={`flex flex-col h-full w-full transition-all duration-300`} className={`flex flex-col flex-1 h-full w-full transition-all duration-300`}
> >
{ContentChild} {ContentChild}
</div> </div>

View file

@ -513,7 +513,7 @@ export default function NodeToolbarComponent({
value={"Share"} value={"Share"}
icon={"Share3"} icon={"Share3"}
styleObj={{ styleObj={{
iconClasses: "relative top-0.5 -m-1 mr-1 h-6 w-6", iconClasses: "relative top-0.5 -m-1 mr-[0.25rem] h-6 w-6",
}} }}
dataTestId="share-button-modal" dataTestId="share-button-modal"
/> />