mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Make sure code editors work correctly in fullscreen (#12597)
This commit is contained in:
@@ -114,6 +114,7 @@ const {
|
||||
segments: { all: segments },
|
||||
readEditorValue,
|
||||
hasFocus: editorHasFocus,
|
||||
isDirty,
|
||||
} = useExpressionEditor({
|
||||
editorRef: sqlEditor,
|
||||
editorValue,
|
||||
@@ -148,6 +149,7 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
if (isDirty.value) emit('update:model-value', readEditorValue());
|
||||
codeNodeEditorEventBus.off('highlightLine', highlightLine);
|
||||
});
|
||||
|
||||
@@ -226,6 +228,10 @@ async function onDrop(value: string, event: MouseEvent) {
|
||||
.sqlEditor {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
|
||||
& > div {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.codemirror {
|
||||
|
||||
Reference in New Issue
Block a user