diff --git a/src/frontend/src/components/codeAreaComponent/index.tsx b/src/frontend/src/components/codeAreaComponent/index.tsx index add09a9ba..2e0893321 100644 --- a/src/frontend/src/components/codeAreaComponent/index.tsx +++ b/src/frontend/src/components/codeAreaComponent/index.tsx @@ -27,60 +27,59 @@ export default function CodeAreaComponent({ useEffect(() => { setMyValue(typeof value == "string" ? value : JSON.stringify(value)); }, [value]); - return ( -
-
- { - openPopUp( - { - setMyValue(t); - onChange(t); - }} - /> - ); - }} - className={ - editNode - ? "input-edit-node input-dialog" - : (disabled ? " input-disable " : "") + - " input-primary input-dialog" - } - > - {myValue !== "" ? myValue : "Type something..."} - - -
+ ); + }} + className={ + editNode + ? "input-edit-node input-dialog" + : (disabled ? " input-disable " : "") + + " input-dialog input-primary" + } + > + {myValue !== "" ? myValue : "Type something..."} + +
+ ); } diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index c4ae9925b..7316566ae 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -99,7 +99,9 @@ export default function InputFileComponent({ className={ editNode ? "input-edit-node input-dialog text-muted-foreground" - : (disabled ? "input-disable input-primary input-dialog" : "input-primary input-dialog text-muted-foreground") + : disabled + ? "input-disable input-dialog input-primary" + : "input-dialog input-primary text-muted-foreground" } > {myValue !== "" ? myValue : "No file"} diff --git a/src/frontend/src/components/promptComponent/index.tsx b/src/frontend/src/components/promptComponent/index.tsx index 888c347ab..4b4f9c1e1 100644 --- a/src/frontend/src/components/promptComponent/index.tsx +++ b/src/frontend/src/components/promptComponent/index.tsx @@ -47,64 +47,64 @@ export default function PromptAreaComponent({ }, [reactFlowInstance, field_name, myValue, nodeClass, setNodeClass]); return ( -
-
- { - openPopUp( - { - setMyValue(t); - onChange(t); - }} - nodeClass={nodeClass} - setNodeClass={setNodeClass} - /> - ); - }} - className={ - editNode - ? "input-edit-node input-dialog" - : (disabled ? " input-disable " : "") + - " input-primary input-dialog" - } - > - {myValue !== "" ? myValue : "Type your prompt here"} - - -
+ ); + }} + className={ + editNode + ? "input-edit-node input-dialog" + : (disabled ? " input-disable " : "") + + " input-dialog input-primary" + } + > + {myValue !== "" ? myValue : "Type your prompt here"} + +
+ ); } diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx index b5a448656..2a7abe859 100644 --- a/src/frontend/src/components/textAreaComponent/index.tsx +++ b/src/frontend/src/components/textAreaComponent/index.tsx @@ -27,8 +27,8 @@ export default function TextAreaComponent({ }, [closePopUp]); return ( -
-
+
+