Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c8ec60

Browse files
committed
fix: add max height and width
1 parent f966e83 commit 8c8ec60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/modules/workspaces/DynamicParameter/DynamicParameter.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,12 @@ const ParameterField: FC<ParameterFieldProps> = ({
315315
case "textarea":
316316
return (
317317
<Textarea
318+
className="max-w-2xl"
318319
defaultValue={defaultValue}
319320
onChange={(e) => onChange(e.target.value)}
320321
onInput={(e) => {
321322
const target = e.currentTarget;
322-
target.style.height = "auto";
323+
target.style.maxHeight = "700px";
323324
target.style.height = `${target.scrollHeight}px`;
324325
}}
325326
disabled={disabled}

0 commit comments

Comments
 (0)