Compare commits

..

1 Commits

2 changed files with 8 additions and 9 deletions

View File

@@ -32,7 +32,6 @@ export const configEditorModule = {
} }
}); });
editorInstance.setSize('100%', '100%');
editorInstance.on('change', () => { editorInstance.on('change', () => {
this.isConfigEditorDirty = true; this.isConfigEditorDirty = true;
this.updateConfigEditorStatus('info', i18n.t('config_management.status_dirty')); this.updateConfigEditorStatus('info', i18n.t('config_management.status_dirty'));

View File

@@ -1404,8 +1404,6 @@ textarea::placeholder {
.yaml-editor { .yaml-editor {
width: 100%; width: 100%;
flex: 1;
min-height: 520px;
border: 1px solid var(--border-primary); border: 1px solid var(--border-primary);
border-radius: 6px; border-radius: 6px;
padding: 12px 14px; padding: 12px 14px;
@@ -1417,10 +1415,12 @@ textarea::placeholder {
resize: vertical; resize: vertical;
} }
#config-management .yaml-editor {
height: 520px;
}
#config-management .CodeMirror { #config-management .CodeMirror {
flex: 1; height: 520px;
min-height: 520px;
height: 100%;
font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Courier New', monospace; font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
@@ -1433,7 +1433,7 @@ textarea::placeholder {
#config-management .CodeMirror-scroll { #config-management .CodeMirror-scroll {
min-height: 0; min-height: 0;
height: 100%; height: 100%;
max-height: none; max-height: 100%;
overflow-y: auto; overflow-y: auto;
overscroll-behavior: contain; overscroll-behavior: contain;
} }
@@ -1484,9 +1484,9 @@ textarea::placeholder {
min-height: 360px; min-height: 360px;
} }
.yaml-editor, #config-management .yaml-editor,
#config-management .CodeMirror { #config-management .CodeMirror {
min-height: 360px; height: 360px;
} }
} }