Skip to content

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

fix(sql-editor): responsive height (#2830)

Liu Ji3f01cb5bd513
diff --git a/frontend/src/views/sql-editor/SQLEditorPage.vue b/frontend/src/views/sql-editor/SQLEditorPage.vue
index 8a1b40b1ec..91d750c0f3 100644
--- a/frontend/src/views/sql-editor/SQLEditorPage.vue
+++ b/frontend/src/views/sql-editor/SQLEditorPage.vue
@@ -1,7 +1,7 @@
<template>
<div class="sqleditor--wrapper">
<TabListContainer />
- <Splitpanes class="default-theme splitpanes-wrap">
+ <Splitpanes class="default-theme flex flex-col flex-1 overflow-hidden">
<Pane size="20">
<AsidePanel />
</Pane>
@@ -73,15 +73,10 @@ const isFetchingSheet = computed(() => sqlEditorStore.isFetchingSheet);
.sqleditor--wrapper {
color: var(--base);
--base: #444;
- --nav-height: 64px;
- --tab-height: 36px;
--font-code: "Source Code Pro", monospace;
--color-branding: #4f46e5;
--border-color: rgba(200, 200, 200, 0.2);
- height: calc(100vh - var(--nav-height));
-}
-.splitpanes.default-theme.splitpanes-wrap {
- height: calc(100% - var(--tab-height));
+ @apply flex-1 overflow-hidden flex flex-col;
}
</style>
diff --git a/frontend/src/views/sql-editor/TabListContainer.vue b/frontend/src/views/sql-editor/TabListContainer.vue
index 10364e2f88..714151aa85 100644
--- a/frontend/src/views/sql-editor/TabListContainer.vue
+++ b/frontend/src/views/sql-editor/TabListContainer.vue
@@ -291,7 +291,6 @@ onUnmounted(() => {
<style scoped>
.tab-list-container {
- height: var(--tab-height);
@apply flex box-border;
@apply text-gray-500 text-sm;
@apply border-b;