disabled size change at IO view
This commit is contained in:
parent
1672339992
commit
2b63863487
1 changed files with 52 additions and 57 deletions
|
|
@ -106,13 +106,7 @@ export default function IOModal({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseModal
|
<BaseModal
|
||||||
size={
|
size={selectedTab === 0 ? "large-thin" : "large"}
|
||||||
haveChat || selectedViewField
|
|
||||||
? selectedTab === 0
|
|
||||||
? "large-thin"
|
|
||||||
: "large"
|
|
||||||
: "small"
|
|
||||||
}
|
|
||||||
open={open}
|
open={open}
|
||||||
setOpen={setOpen}
|
setOpen={setOpen}
|
||||||
disable={disable}
|
disable={disable}
|
||||||
|
|
@ -135,8 +129,7 @@ export default function IOModal({
|
||||||
{selectedTab !== 0 && (
|
{selectedTab !== 0 && (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"mr-6 flex h-full w-2/6 flex-shrink-0 flex-col justify-start transition-all duration-300",
|
"mr-6 flex h-full w-2/6 w-2/6 flex-shrink-0 flex-col justify-start transition-all duration-300"
|
||||||
haveChat || selectedViewField ? "w-2/6" : "w-full"
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Tabs
|
<Tabs
|
||||||
|
|
@ -299,7 +292,6 @@ export default function IOModal({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{haveChat || selectedViewField ? (
|
|
||||||
<div className="flex h-full min-w-96 flex-grow">
|
<div className="flex h-full min-w-96 flex-grow">
|
||||||
{selectedViewField && (
|
{selectedViewField && (
|
||||||
<div
|
<div
|
||||||
|
|
@ -347,6 +339,7 @@ export default function IOModal({
|
||||||
selectedViewField ? "hidden" : ""
|
selectedViewField ? "hidden" : ""
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
{haveChat ? (
|
||||||
<ChatView
|
<ChatView
|
||||||
sendMessage={sendMessage}
|
sendMessage={sendMessage}
|
||||||
chatValue={chatValue}
|
chatValue={chatValue}
|
||||||
|
|
@ -354,13 +347,15 @@ export default function IOModal({
|
||||||
lockChat={lockChat}
|
lockChat={lockChat}
|
||||||
setLockChat={setLockChat}
|
setLockChat={setLockChat}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
) : (
|
) : (
|
||||||
<div className="absolute bottom-8 right-8"></div>
|
<span className="flex h-full w-full items-center justify-center font-thin text-muted-foreground">
|
||||||
|
Select an IO component to view
|
||||||
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
<BaseModal.Footer>
|
<BaseModal.Footer>
|
||||||
{!haveChat && (
|
{!haveChat && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue