🐛 fix(codeAreaComponent): update class names to improve styling and semantics

🐛 fix(promptComponent): remove unnecessary div wrapper
🐛 fix(textAreaComponent): update class names to improve styling and semantics
This commit is contained in:
Cristhian Zanforlin Lousa 2023-07-10 12:01:25 -03:00
commit efbc23d6bc
3 changed files with 5 additions and 6 deletions

View file

@ -48,8 +48,9 @@ export default function CodeAreaComponent({
}}
className={
editNode
? "input-edit-node"
: "input-primary text-muted-foreground" + (disabled ? " input-disable" : "")
? "input-edit-node input-dialog"
: (disabled ? " input-disable " : "") +
" input-primary input-dialog"
}
>
{myValue !== "" ? myValue : "Type something..."}

View file

@ -47,7 +47,6 @@ export default function PromptAreaComponent({
}, [reactFlowInstance, field_name, myValue, nodeClass, setNodeClass]);
return (
<div className={disabled ? "cursor-not-allowed" : ""}>
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
<div className="flex w-full items-center">
<span
@ -107,6 +106,5 @@ export default function PromptAreaComponent({
</button>
</div>
</div>
</div>
);
}

View file

@ -33,8 +33,8 @@ export default function TextAreaComponent({
value={myValue}
className={
editNode
? "input-edit-node"
: "input-primary" + (disabled ? " input-disable " : "")
? " input-edit-node "
: " input-primary " + (disabled ? " input-disable" : "")
}
placeholder={"Type something..."}
onChange={(e) => {