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