🐛 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:
parent
c8cdb89da1
commit
efbc23d6bc
3 changed files with 5 additions and 6 deletions
|
|
@ -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..."}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue