Update IOFieldView component styling

This commit is contained in:
anovazzi1 2024-03-30 18:50:33 -03:00
commit 2f10641dd3

View file

@ -23,7 +23,7 @@ export default function IOFieldView({
case "TextInput": case "TextInput":
return ( return (
<Textarea <Textarea
className={`w-full ${left ? "" : " h-full"}`} className={`w-full custom-scroll ${left ? " h-32" : " h-full"}`}
placeholder={"Enter text..."} placeholder={"Enter text..."}
value={node.data.node!.template["input_value"].value} value={node.data.node!.template["input_value"].value}
onChange={(e) => { onChange={(e) => {
@ -54,7 +54,7 @@ export default function IOFieldView({
default: default:
return ( return (
<Textarea <Textarea
className="w-full custom-scroll" className={`w-full custom-scroll ${left ? " h-32" : " h-full"}`}
placeholder={"Enter text..."} placeholder={"Enter text..."}
value={node.data.node!.template["input_value"]} value={node.data.node!.template["input_value"]}
onChange={(e) => { onChange={(e) => {
@ -74,7 +74,7 @@ export default function IOFieldView({
case "TextOutput": case "TextOutput":
return ( return (
<Textarea <Textarea
className={`w-full custom-scroll ${left ? "" : " h-full"}`} className={`w-full custom-scroll ${left ? " h-32" : " h-full"}`}
placeholder={"Empty"} placeholder={"Empty"}
// update to real value on flowPool // update to real value on flowPool
value={ value={
@ -89,7 +89,7 @@ export default function IOFieldView({
default: default:
return ( return (
<Textarea <Textarea
className={`w-full custom-scroll ${left ? "" : " h-full"}`} className={`w-full custom-scroll ${left ? " h-32" : " h-full"}`}
placeholder={"Empty"} placeholder={"Empty"}
// update to real value on flowPool // update to real value on flowPool
value={ value={