Changed size of only chat

This commit is contained in:
Lucas Oliveira 2024-02-24 23:37:34 +01:00
commit 3c0957e956
2 changed files with 6 additions and 1 deletions

View file

@ -89,7 +89,7 @@ export default function IOView({ children, open, setOpen }): JSX.Element {
return (
<BaseModal
size={haveChat ? "large" : "small"}
size={haveChat ? (selectedTab === 0 ? "large-thin" : "large") : "small"}
open={open}
setOpen={setOpen}
>

View file

@ -66,6 +66,7 @@ interface BaseModalProps {
| "small"
| "medium"
| "large"
| "large-thin"
| "large-h-full"
| "small-h-full"
| "medium-h-full"
@ -128,6 +129,10 @@ function BaseModal({
minWidth = "min-w-[80vw]";
height = "h-[80vh]";
break;
case "large-thin":
minWidth = "min-w-[65vw]";
height = "h-[80vh]";
break;
case "large-h-full":
minWidth = "min-w-[80vw]";
break;