From 2525ad218c24690355d73f4ff1be67b5958a7f94 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 7 Jul 2023 17:37:23 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(dropdownComponent):=20add=20?= =?UTF-8?q?'nowheel'=20class=20to=20options=20when=20editNode=20is=20true?= =?UTF-8?q?=20to=20fix=20styling=20issue=20=F0=9F=90=9B=20fix(inputFileCom?= =?UTF-8?q?ponent):=20fix=20class=20order=20in=20className=20to=20ensure?= =?UTF-8?q?=20correct=20styling=20when=20editNode=20is=20true=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(genericModal):=20remove=20unnecessary=20cond?= =?UTF-8?q?itional=20rendering=20of=20'-'=20in=20Input=20Variables=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/dropdownComponent/index.tsx | 4 ++-- src/frontend/src/components/inputFileComponent/index.tsx | 7 +++++-- src/frontend/src/modals/genericModal/index.tsx | 3 +-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/components/dropdownComponent/index.tsx b/src/frontend/src/components/dropdownComponent/index.tsx index 84c036ec4..f4c2ed607 100644 --- a/src/frontend/src/components/dropdownComponent/index.tsx +++ b/src/frontend/src/components/dropdownComponent/index.tsx @@ -63,8 +63,8 @@ export default function Dropdown({ diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index 505515bf5..29a3dd128 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -91,6 +91,7 @@ export default function InputFileComponent({ input.click(); }; + return (
@@ -98,8 +99,10 @@ export default function InputFileComponent({ onClick={handleButtonClick} className={ editNode - ? "input-edit-node " + "input-primary " - : "input-primary " + (disabled ? "input-disable " : "") + ? " input-edit-node " + " input-dialog " + : (disabled ? " input-disable " : "") + + " input-primary " + + " input-dialog " } > {myValue !== "" ? myValue : "No file"} diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index aa3c99774..b0a0ae315 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -242,8 +242,7 @@ export default function GenericModal({
- Input Variables:{" "} - {wordsHighlight && wordsHighlight.length == 0 ? "-" : ""} + Input Variables: {wordsHighlight.map((word, index) => (