Fix pop out scroll

This commit is contained in:
Gregory Schier
2025-07-11 08:52:31 -07:00
parent ad4e073f62
commit 209ac45ed2

View File

@@ -319,8 +319,9 @@ function EditorArg({
onClick={() => { onClick={() => {
showDialog({ showDialog({
id: 'id', id: 'id',
size: 'dynamic', size: 'full',
title: 'Edit Value', title: 'Edit Value',
className: '!max-w-[50rem] !max-h-[60rem]',
description: ( description: (
<Label <Label
htmlFor={id} htmlFor={id}
@@ -338,7 +339,6 @@ function EditorArg({
}, },
render() { render() {
return ( return (
<div className="w-[100vw] max-w-[40rem] h-[calc(100vh-10rem)] max-h-[40rem]">
<Editor <Editor
id={id} id={id}
autocomplete={ autocomplete={
@@ -347,16 +347,13 @@ function EditorArg({
disabled={arg.disabled} disabled={arg.disabled}
language={arg.language} language={arg.language}
onChange={onChange} onChange={onChange}
defaultValue={ defaultValue={value === DYNAMIC_FORM_NULL_ARG ? arg.defaultValue : value}
value === DYNAMIC_FORM_NULL_ARG ? arg.defaultValue : value
}
placeholder={arg.placeholder ?? undefined} placeholder={arg.placeholder ?? undefined}
autocompleteFunctions={autocompleteFunctions} autocompleteFunctions={autocompleteFunctions}
autocompleteVariables={autocompleteVariables} autocompleteVariables={autocompleteVariables}
stateKey={stateKey} stateKey={stateKey}
forceUpdateKey={forceUpdateKey} forceUpdateKey={forceUpdateKey}
/> />
</div>
); );
}, },
}); });