mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix pop out scroll
This commit is contained in:
@@ -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,25 +339,21 @@ 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={
|
arg.completionOptions ? { options: arg.completionOptions } : undefined
|
||||||
arg.completionOptions ? { options: arg.completionOptions } : undefined
|
}
|
||||||
}
|
disabled={arg.disabled}
|
||||||
disabled={arg.disabled}
|
language={arg.language}
|
||||||
language={arg.language}
|
onChange={onChange}
|
||||||
onChange={onChange}
|
defaultValue={value === DYNAMIC_FORM_NULL_ARG ? arg.defaultValue : value}
|
||||||
defaultValue={
|
placeholder={arg.placeholder ?? undefined}
|
||||||
value === DYNAMIC_FORM_NULL_ARG ? arg.defaultValue : value
|
autocompleteFunctions={autocompleteFunctions}
|
||||||
}
|
autocompleteVariables={autocompleteVariables}
|
||||||
placeholder={arg.placeholder ?? undefined}
|
stateKey={stateKey}
|
||||||
autocompleteFunctions={autocompleteFunctions}
|
forceUpdateKey={forceUpdateKey}
|
||||||
autocompleteVariables={autocompleteVariables}
|
/>
|
||||||
stateKey={stateKey}
|
|
||||||
forceUpdateKey={forceUpdateKey}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user