mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-11 23:32:56 +02:00
Cap max height on template function dialog
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user