fix(editor): Make sure code editors work correctly in fullscreen (#12597)

This commit is contained in:
Elias Meire
2025-01-14 18:16:41 +01:00
committed by GitHub
parent bfe3c5611a
commit aa1f3a7d98
6 changed files with 98 additions and 12 deletions

View File

@@ -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 {