From 17b6c945e696d6a13d890cdd1e3b3cc914ed570a Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 19 Nov 2025 09:39:43 -0800 Subject: [PATCH] Cap max height on template function dialog --- src-web/components/core/Editor/Editor.tsx | 2 +- src-web/lib/editEnvironment.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: () => (