This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-26 22:05:45 -03:00
commit 921af848b7
4 changed files with 4 additions and 4 deletions

View file

@ -753,7 +753,7 @@ export default function CodeTabsComponent({
)
)}
>
<div className="mx-auto">
<div className="mx-auto max-h-48 overflow-auto custom-scroll">
<KeypairListComponent
disabled={false}
editNode={true}

View file

@ -42,7 +42,7 @@ export default function KeypairListComponent({
<div
className={classNames(
value?.length > 1 && editNode ? "my-1" : "",
"flex flex-col gap-3"
"flex flex-col gap-3 h-full"
)}
>
{value?.map((obj, index) => {

View file

@ -256,7 +256,7 @@ const EditNodeModal = forwardRef(
</div>
) : myData.current.node?.template[templateParam]
.type === "dict" ? (
<div className="mt-2 w-full">
<div className="mt-2 w-full max-h-48 overflow-auto custom-scroll">
<KeypairListComponent
disabled={disabled}
editNode={true}

View file

@ -325,7 +325,7 @@ export default function Page({
} else if (event.dataTransfer.types.some((types) => types === "Files")) {
takeSnapshot();
if (event.dataTransfer.files.item(0)!.type === "application/json") {
uploadFlow(true, event.dataTransfer.files.item(0)!);
uploadFlow(false, event.dataTransfer.files.item(0)!);
} else {
setErrorData({
title: "Invalid file type",