Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(layout): make settings scrollable and unclip storage tab

zipg6ce402f26b6e
diff --git a/apps/desktop/src/components/config/DriverStoreDialog.vue b/apps/desktop/src/components/config/DriverStoreDialog.vue
index 1e0b429b67..89a5f63084 100644
--- a/apps/desktop/src/components/config/DriverStoreDialog.vue
+++ b/apps/desktop/src/components/config/DriverStoreDialog.vue
@@ -2231,8 +2231,10 @@ html.dark .driver-store-agent-row--installed::before {
overflow-x: hidden;
}
-/* Storage tab: cards scroll together inside the tab */
-.driver-store-storage-tab {
+/* Storage tab: cards scroll together inside the tab. The selector must out-specify
+ `.driver-store-tabs-root > [data-slot="tabs-content"]` above, otherwise the
+ `overflow: hidden` there wins and the cards get clipped with no way to scroll. */
+.driver-store-tabs-root > [data-slot="tabs-content"].driver-store-storage-tab {
display: flex !important;
flex-direction: column;
flex: 1 1 0;
@@ -2241,6 +2243,12 @@ html.dark .driver-store-agent-row--installed::before {
overflow-x: hidden;
}
+/* Cards must keep their natural height, otherwise `flex` squeezes the runtime
+ list inside the last card instead of letting the tab scroll. */
+.driver-store-tabs-root > [data-slot="tabs-content"].driver-store-storage-tab > * {
+ flex-shrink: 0;
+}
+
.driver-store-agent-name,
.driver-store-jdbc-name {
flex: 1 1 auto !important;
diff --git a/apps/desktop/src/components/editor/EditorSettingsDialog.vue b/apps/desktop/src/components/editor/EditorSettingsDialog.vue
index cc78015224..17881e53ee 100644
--- a/apps/desktop/src/components/editor/EditorSettingsDialog.vue
+++ b/apps/desktop/src/components/editor/EditorSettingsDialog.vue
@@ -6142,7 +6142,7 @@ onUnmounted(() => {
</button>
</nav>
- <div class="min-w-0 flex-1 overflow-visible pl-1 pr-0 flex flex-col">
+ <div class="min-w-0 min-h-0 flex-1 overflow-visible pl-1 pr-0 flex flex-col">
<div class="shrink-0 px-2 pt-1 pb-3">
<div ref="settingsSearchInputContainerRef" class="relative">
<Search class="pointer-events-none absolute top-1/2 left-4 z-10 h-4 w-4 -translate-y-1/2 text-muted-foreground" />