From 9f24f7830cfb149ff7a0f56819604121d464b3b7 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 5 Jul 2023 19:30:48 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(codeAreaComponent):=20adjust?= =?UTF-8?q?=20classNames=20to=20fix=20styling=20issues=20and=20improve=20r?= =?UTF-8?q?eadability=20=F0=9F=90=9B=20fix(promptComponent):=20adjust=20cl?= =?UTF-8?q?assNames=20to=20fix=20styling=20issues=20and=20improve=20readab?= =?UTF-8?q?ility=20=F0=9F=90=9B=20fix(textAreaComponent):=20adjust=20class?= =?UTF-8?q?Names=20to=20fix=20styling=20issues=20and=20improve=20readabili?= =?UTF-8?q?ty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/codeAreaComponent/index.tsx | 106 ++++++++-------- .../src/components/promptComponent/index.tsx | 117 +++++++++--------- .../components/textAreaComponent/index.tsx | 11 +- 3 files changed, 123 insertions(+), 111 deletions(-) diff --git a/src/frontend/src/components/codeAreaComponent/index.tsx b/src/frontend/src/components/codeAreaComponent/index.tsx index 00578a25a..e0a46f88c 100644 --- a/src/frontend/src/components/codeAreaComponent/index.tsx +++ b/src/frontend/src/components/codeAreaComponent/index.tsx @@ -30,57 +30,63 @@ export default function CodeAreaComponent({ }, [value]); return ( -
-
- { - openPopUp( - { - setMyValue(t); - onChange(t); - }} +
+
+
+ { + openPopUp( + { + setMyValue(t); + onChange(t); + }} + /> + ); + }} + className={ + editNode + ? "input-edit-node input-dialog " + : "input-dialog input-primary " + + (disabled ? "input-disable" : "") + } + > + {myValue !== "" ? myValue : "Type something..."} + + + )} + +
); diff --git a/src/frontend/src/components/promptComponent/index.tsx b/src/frontend/src/components/promptComponent/index.tsx index 18bf9cc01..8bac5fe7e 100644 --- a/src/frontend/src/components/promptComponent/index.tsx +++ b/src/frontend/src/components/promptComponent/index.tsx @@ -47,65 +47,66 @@ export default function PromptAreaComponent({ }, [reactFlowInstance, field_name]); return ( -
-
- { - openPopUp( - { - setMyValue(t); - onChange(t); - }} - nodeClass={nodeClass} - setNodeClass={setNodeClass} +
+
+
+ { + 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"} + + + )} + +
); diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx index b175da5de..c62af4b30 100644 --- a/src/frontend/src/components/textAreaComponent/index.tsx +++ b/src/frontend/src/components/textAreaComponent/index.tsx @@ -27,10 +27,11 @@ export default function TextAreaComponent({ }, [closePopUp]); return ( -
+
{myValue !== "" ? myValue : "Type something..."} +