Skip to content

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

chore: make SQL Editor control more condensed (#7621)

Tianzhou (天舟)d9d94c069000
diff --git a/frontend/src/plugins/ai/components/MockInputPlaceholder.vue b/frontend/src/plugins/ai/components/MockInputPlaceholder.vue
index f92d0a6784..af6078a3e8 100644
--- a/frontend/src/plugins/ai/components/MockInputPlaceholder.vue
+++ b/frontend/src/plugins/ai/components/MockInputPlaceholder.vue
@@ -2,6 +2,7 @@
<div v-if="!dismissed" class="w-full px-4 py-2 border-t">
<NInputGroup>
<NInput
+ size="small"
class="bb-ai-mock-input !cursor-pointer"
:disabled="false"
:placeholder="$t('plugin.ai.text-to-sql-disabled-placeholder')"
diff --git a/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue b/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
index 1648023399..53a44d39d0 100644
--- a/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
@@ -6,7 +6,12 @@
:tabs-padding="8"
>
<NTabPane name="databases" :tab="$t('common.databases')">
- <NTabs v-model:value="databaseTab" type="segment" class="h-full">
+ <NTabs
+ v-model:value="databaseTab"
+ type="segment"
+ size="small"
+ class="h-full"
+ >
<NTabPane name="projects" :tab="$t('common.projects')">
<Splitpanes
horizontal
@@ -53,7 +58,12 @@
</NTabs>
</NTabPane>
<NTabPane name="sheets" :tab="$t('sheet.sheets')">
- <NTabs v-model:value="sheetTab" type="segment" class="h-full">
+ <NTabs
+ v-model:value="sheetTab"
+ size="small"
+ type="segment"
+ class="h-full"
+ >
<NTabPane name="my" :tab="$t('sheet.mine')">
<SheetList view="my" />
</NTabPane>
diff --git a/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue b/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
index 4e777aacb4..86493da181 100644
--- a/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
@@ -6,6 +6,7 @@
>
<div class="databases-tree--input">
<NInput
+ size="small"
:value="searchPattern"
:placeholder="$t('sql-editor.search-databases')"
:clearable="true"
diff --git a/frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue b/frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue
index f90b304fb4..1f4a40db33 100644
--- a/frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue
@@ -6,6 +6,7 @@
<div class="w-full">
<NInput
v-model:value="state.search"
+ size="small"
:placeholder="$t('sql-editor.search-history')"
>
<template #prefix>
diff --git a/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetItem.vue b/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetItem.vue
index db399f3166..3090ca99ad 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetItem.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetItem.vue
@@ -1,7 +1,7 @@
<template>
<div
:id="domIDForItem(item)"
- class="flex items-start justify-between hover:bg-gray-100 px-2 py-1 gap-x-1"
+ class="flex items-start justify-between hover:bg-gray-100 px-2 gap-x-1"
:class="[isCurrentItem && 'bg-indigo-600/10']"
@click="$emit('click', item, $event)"
@contextmenu="$emit('contextmenu', item, $event)"
diff --git a/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetList.vue b/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetList.vue
index d4ba595f2b..f683892730 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetList.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/SheetList/SheetList.vue
@@ -3,6 +3,7 @@
<div class="px-2 py-2 gap-x-1 flex items-center">
<NInput
v-model:value="keyword"
+ size="small"
:disabled="isLoading"
:placeholder="$t('sheet.search-sheets')"
:clearable="true"
diff --git a/frontend/src/views/sql-editor/AsidePanel/SheetList/TabItem.vue b/frontend/src/views/sql-editor/AsidePanel/SheetList/TabItem.vue
index 68cc2f7e17..a190e989c9 100644
--- a/frontend/src/views/sql-editor/AsidePanel/SheetList/TabItem.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/SheetList/TabItem.vue
@@ -1,7 +1,7 @@
<template>
<div
:id="domIDForItem(item)"
- class="flex items-start justify-between hover:bg-gray-100 px-2 py-1 gap-x-1"
+ class="flex items-start justify-between hover:bg-gray-100 px-2 gap-x-1"
:class="[isCurrentItem && 'bg-indigo-600/10']"
@click="$emit('click', item, $event)"
>