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: allow custom theme editor to scroll

t8y203ade2ebbac5
diff --git a/apps/desktop/src/components/editor/ThemeCustomizerDialog.vue b/apps/desktop/src/components/editor/ThemeCustomizerDialog.vue
index d5de91c031..6cee27209d 100644
--- a/apps/desktop/src/components/editor/ThemeCustomizerDialog.vue
+++ b/apps/desktop/src/components/editor/ThemeCustomizerDialog.vue
@@ -489,14 +489,14 @@ function handleImport() {
</div>
<!-- Edit area -->
- <div class="flex-1 min-w-0 overflow-hidden flex flex-col">
- <Tabs defaultValue="visual" class="w-full flex-1 flex flex-col">
+ <div class="flex-1 min-w-0 min-h-0 overflow-hidden flex flex-col">
+ <Tabs defaultValue="visual" class="w-full flex-1 min-h-0 flex flex-col">
<TabsList class="grid w-full grid-cols-2">
<TabsTrigger value="visual">{{ t("settings.customThemeVisualEdit") }}</TabsTrigger>
<TabsTrigger value="json">{{ t("settings.customThemeJsonConfig") }}</TabsTrigger>
</TabsList>
- <TabsContent value="visual" class="space-y-4 flex-1 overflow-y-auto pr-1">
+ <TabsContent value="visual" class="space-y-4 flex-1 min-h-0 overflow-y-auto pr-1">
<!-- Preview area -->
<div class="rounded-lg border bg-black/50 p-5 font-mono text-base">
<div class="mb-2 text-sm text-muted-foreground">{{ t("settings.customThemeLivePreview") }}</div>
@@ -592,7 +592,7 @@ function handleImport() {
</div>
</TabsContent>
- <TabsContent value="json" class="space-y-4 flex-1 flex flex-col min-h-[400px]">
+ <TabsContent value="json" class="space-y-4 flex-1 min-h-0 flex flex-col">
<textarea
v-model="jsonText"
@blur="handleJsonChange"