Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update line-numbers gutter width in compact editor (#8288)

Liu Ji162758008b2e
diff --git a/frontend/src/views/sql-editor/TerminalPanel/CompactSQLEditor.vue b/frontend/src/views/sql-editor/TerminalPanel/CompactSQLEditor.vue
index e06a8f8fb7..56880e79ed 100644
--- a/frontend/src/views/sql-editor/TerminalPanel/CompactSQLEditor.vue
+++ b/frontend/src/views/sql-editor/TerminalPanel/CompactSQLEditor.vue
@@ -1,5 +1,5 @@
<template>
- <div class="whitespace-pre-wrap w-full overflow-hidden">
+ <div class="whitespace-pre-wrap w-full overflow-hidden compact-sql-editor">
<MonacoEditor
ref="editorRef"
class="w-full h-auto max-h-[360px]"
@@ -343,3 +343,9 @@ watch(
(prompt) => (EDITOR_OPTIONS.value.lineNumbersMinChars = prompt.length + 1)
);
</script>
+
+<style lang="postcss">
+.compact-sql-editor .monaco-editor .line-numbers {
+ @apply pr-0;
+}
+</style>