Update IOFieldView component styling

This commit is contained in:
anovazzi1 2024-03-30 19:49:16 -03:00
commit faff541692

View file

@ -23,7 +23,7 @@ export default function IOFieldView({
case "TextInput":
return (
<Textarea
className={`w-full custom-scroll ${left ? " h-32" : " h-full"}`}
className={`w-full custom-scroll ${left ? " min-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 ${left ? " h-32" : " h-full"}`}
className={`w-full custom-scroll ${left ? " min-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-32" : " h-full"}`}
className={`w-full custom-scroll ${left ? " min-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-32" : " h-full"}`}
className={`w-full custom-scroll ${left ? " min-h-32" : " h-full"}`}
placeholder={"Empty"}
// update to real value on flowPool
value={