Cap max height on template function dialog

This commit is contained in:
Gregory Schier
2025-11-19 09:39:43 -08:00
parent 474e761eb7
commit 17b6c945e6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ export function Editor({
showDialog({ showDialog({
id: 'template-function-' + Math.random(), // Allow multiple at once id: 'template-function-' + Math.random(), // Allow multiple at once
size: 'md', size: 'md',
className: 'h-[90vh]', className: 'h-[90vh] max-h-[60rem]',
noPadding: true, noPadding: true,
title: <InlineCode>{fn.name}()</InlineCode>, title: <InlineCode>{fn.name}()</InlineCode>,
description: fn.description, description: fn.description,
+1 -1
View File
@@ -45,7 +45,7 @@ export async function editEnvironment(
id: 'environment-editor', id: 'environment-editor',
noPadding: true, noPadding: true,
size: 'lg', size: 'lg',
className: 'h-[90vh]', className: 'h-[90vh] max-h-[60rem]',
render: () => ( render: () => (
<EnvironmentEditDialog <EnvironmentEditDialog
initialEnvironmentId={environment?.id ?? null} initialEnvironmentId={environment?.id ?? null}