Skip to content

fix: update dynamic params styles #17489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add max height and width
  • Loading branch information
jaaydenh committed Apr 21, 2025
commit 8c8ec60214be0a19264b1477a2a94dc57207dfcb
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,12 @@ const ParameterField: FC<ParameterFieldProps> = ({
case "textarea":
return (
<Textarea
className="max-w-2xl"
defaultValue={defaultValue}
onChange={(e) => onChange(e.target.value)}
onInput={(e) => {
const target = e.currentTarget;
target.style.height = "auto";
target.style.maxHeight = "700px";
target.style.height = `${target.scrollHeight}px`;
}}
disabled={disabled}
Expand Down
Loading