🐛 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={ className={
editNode editNode
? "input-edit-node" ? "input-edit-node input-dialog"
: "input-primary text-muted-foreground" + (disabled ? " input-disable" : "") : (disabled ? " input-disable " : "") +
" input-primary input-dialog"
} }
> >
{myValue !== "" ? myValue : "Type something..."} {myValue !== "" ? myValue : "Type something..."}

View file

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

View file

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