diff --git a/src-web/components/core/Editor/Editor.tsx b/src-web/components/core/Editor/Editor.tsx
index f4d7310c..07a9aa63 100644
--- a/src-web/components/core/Editor/Editor.tsx
+++ b/src-web/components/core/Editor/Editor.tsx
@@ -290,7 +290,7 @@ export function Editor({
showDialog({
id: 'template-function-' + Math.random(), // Allow multiple at once
size: 'md',
- className: 'h-[90vh]',
+ className: 'h-[90vh] max-h-[60rem]',
noPadding: true,
title: {fn.name}(…),
description: fn.description,
diff --git a/src-web/lib/editEnvironment.tsx b/src-web/lib/editEnvironment.tsx
index 0ac7692a..b62fbea7 100644
--- a/src-web/lib/editEnvironment.tsx
+++ b/src-web/lib/editEnvironment.tsx
@@ -45,7 +45,7 @@ export async function editEnvironment(
id: 'environment-editor',
noPadding: true,
size: 'lg',
- className: 'h-[90vh]',
+ className: 'h-[90vh] max-h-[60rem]',
render: () => (