Skip to content

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

fix: editor height (#5954)

Liu Ji317fa749b081
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
index 04ba7b5523..e6d90c2fd7 100644
--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue
+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue
@@ -99,7 +99,7 @@
>
<MonacoEditor
ref="editorRef"
- class="w-full h-auto max-h-[360px]"
+ class="w-full max-h-[360px]"
data-label="bb-issue-sql-editor"
:value="state.editStatement"
:readonly="readonly"
@@ -642,7 +642,9 @@ const updateEditorHeight = () => {
const handleMonacoEditorReady = () => {
handleUpdateEditorAutoCompletionContext();
- updateEditorHeight();
+ requestAnimationFrame(() => {
+ updateEditorHeight();
+ });
};
watch([databaseList, tableList], () => {