fix: disable resizing in TextModal (#6718)

* Created resizable parameter in TextEditorArea

* Changed resizable to false in TextModal
This commit is contained in:
Lucas Oliveira 2025-02-24 13:40:06 -03:00 committed by GitHub
commit e8d2635e1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -3,10 +3,12 @@ import { Textarea } from "../../../../components/ui/textarea";
const TextEditorArea = ({
left,
value,
resizable = true,
onChange,
readonly,
}: {
left: boolean | undefined;
resizable?: boolean;
value: any;
onChange?: (string) => void;
readonly: boolean;
@ -17,7 +19,9 @@ const TextEditorArea = ({
return (
<Textarea
readOnly={readonly}
className={`w-full custom-scroll ${left ? "min-h-32" : "h-full"}`}
className={`w-full custom-scroll ${left ? "min-h-32" : "h-full"} ${
resizable ? "resize-y" : "resize-none"
}`}
placeholder={"Empty"}
// update to real value on flowPool
value={value}

View file

@ -54,6 +54,7 @@ export default function TextModal({
readonly={!editable}
onChange={(text) => setInternalValue(text)}
value={internalValue}
resizable={false}
left={false}
/>
</div>