From 3842b9090796e6e62df4e4f79312eebac9030158 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 7 Jul 2023 11:36:34 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(GenericNode):=20improve=20re?= =?UTF-8?q?adability=20of=20tooltip=20title=20by=20formatting=20the=20JSX?= =?UTF-8?q?=20code=20=F0=9F=90=9B=20fix(inputFileComponent):=20fix=20class?= =?UTF-8?q?=20order=20in=20className=20to=20ensure=20proper=20styling=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(textAreaComponent):=20fix=20class=20order=20?= =?UTF-8?q?in=20className=20to=20ensure=20proper=20styling=20=F0=9F=90=9B?= =?UTF-8?q?=20fix(API):=20remove=20trailing=20whitespace=20at=20the=20end?= =?UTF-8?q?=20of=20the=20file=20=F0=9F=90=9B=20fix(ApiModal):=20add=20miss?= =?UTF-8?q?ing=20space=20before=20if=20statement=20condition=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(genericModal):=20remove=20unnecessary=20whit?= =?UTF-8?q?espace=20and=20fix=20class=20order=20in=20className=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(utils):=20add=20missing=20comma=20in=20INVAL?= =?UTF-8?q?ID=5FCHARACTERS=20array=20=F0=9F=90=9B=20fix(tailwind.config.js?= =?UTF-8?q?):=20add=20missing=20comma=20in=20custom-scroll=20CSS=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/CustomNodes/GenericNode/index.tsx | 10 +++++-- .../components/inputFileComponent/index.tsx | 2 +- .../components/textAreaComponent/index.tsx | 27 +++++++++---------- src/frontend/src/controllers/API/index.ts | 2 +- src/frontend/src/modals/ApiModal/index.tsx | 2 +- .../src/modals/genericModal/index.tsx | 27 +++++++++---------- src/frontend/src/utils.ts | 2 +- src/frontend/tailwind.config.js | 2 +- 8 files changed, 39 insertions(+), 35 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 56d574920..0567580e3 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -118,8 +118,14 @@ export default function GenericNode({ Build flow to validate status. - + + Build{" "} + {" "} + flow to validate status. + ) : (
{validationStatus.params diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index 99f066aff..f1919f220 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -112,7 +112,7 @@ export default function InputFileComponent({ {!editNode && !loading && ( )} {!editNode && loading && ( diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx index dc6f92cd2..c7c7f5e80 100644 --- a/src/frontend/src/components/textAreaComponent/index.tsx +++ b/src/frontend/src/components/textAreaComponent/index.tsx @@ -30,24 +30,23 @@ export default function TextAreaComponent({
- { - setMyValue(e.target.value); - onChange(e.target.value); - }} - /> + value={myValue} + className={ + editNode + ? "input-edit-node" + : "input-primary" + (disabled ? " input-disable " : "") + } + placeholder={"Type something..."} + onChange={(e) => { + setMyValue(e.target.value); + onChange(e.target.value); + }} + />