fix: disable resizing in TextModal (#6718)
* Created resizable parameter in TextEditorArea * Changed resizable to false in TextModal
This commit is contained in:
parent
e0b1c63c1b
commit
e8d2635e1c
2 changed files with 6 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ export default function TextModal({
|
|||
readonly={!editable}
|
||||
onChange={(text) => setInternalValue(text)}
|
||||
value={internalValue}
|
||||
resizable={false}
|
||||
left={false}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue