From 160aa47e26c76e628a966b32622f5150b11e1747 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 26 Feb 2024 21:44:44 +0100 Subject: [PATCH] Made back button on chat and fixed output and input exibition --- .../src/CustomNodes/GenericNode/index.tsx | 4 +- .../src/components/IOInputField/index.tsx | 13 +-- .../src/components/IOOutputView/index.tsx | 16 +-- src/frontend/src/components/IOview/index.tsx | 101 +++++++++++------- src/frontend/src/utils/styleUtils.ts | 2 + 5 files changed, 77 insertions(+), 59 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 18ce539c6..733484845 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -477,11 +477,11 @@ export default function GenericNode({ ) : (
{typeof validationStatus.params === "string" - ? `${durationString}\n${validationStatus.params}` + ? (`${durationString}\n${validationStatus.params}` .split("\n") .map((line, index) => (
{line}
- )) + ))) : durationString}
) diff --git a/src/frontend/src/components/IOInputField/index.tsx b/src/frontend/src/components/IOInputField/index.tsx index e5b661927..e7aac5928 100644 --- a/src/frontend/src/components/IOInputField/index.tsx +++ b/src/frontend/src/components/IOInputField/index.tsx @@ -12,12 +12,12 @@ export default function IOInputField({ const setNode = useFlowStore((state) => state.setNode); const node = nodes.find((node) => node.id === inputId); function handleInputType() { - if (!node) return "no node found"; + if (!node) return <>"No node found!"; switch (inputType) { case "TextInput": return (