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): sharper inner panel corners (#12600)

Cristian41a5a9f59e4d
diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vue
index 4e735511c9..51cc5ffb29 100644
--- a/apps/desktop/src/App.vue
+++ b/apps/desktop/src/App.vue
@@ -5289,7 +5289,7 @@ onUnmounted(() => {
<div
data-editor-content
v-show="isSpecialPageActive || (!isAiPanelMaximized && !isHistoryPanelMaximized) || isZenMode"
- :class="isDetachedWindowContext ? 'flex-1 min-w-0 overflow-hidden bg-background' : isClassicLayout ? 'flex-1 min-w-0 overflow-hidden' : 'flex-1 min-w-0 overflow-hidden rounded-md border border-border/80 bg-background'"
+ :class="isDetachedWindowContext ? 'flex-1 min-w-0 overflow-hidden bg-background' : isClassicLayout ? 'flex-1 min-w-0 overflow-hidden' : 'flex-1 min-w-0 overflow-hidden dbx-panel bg-background'"
@mousedown="rememberEditorContentSurface"
@focusin="rememberEditorContentSurface"
>
@@ -5587,7 +5587,7 @@ onUnmounted(() => {
<div
v-if="!isDetachedWindowContext && showAiPanel"
v-show="!isSpecialPageActive && !isHistoryPanelMaximized && !isZenMode"
- :class="[isClassicLayout ? 'h-full relative z-30 isolate bg-background' : 'h-full relative z-30 isolate rounded-md border border-border/80 bg-background', isAiPanelMaximized ? 'min-w-0 flex-1' : 'min-w-[240px] max-w-full']"
+ :class="[isClassicLayout ? 'h-full relative z-30 isolate bg-background' : 'h-full relative z-30 isolate dbx-panel bg-background', isAiPanelMaximized ? 'min-w-0 flex-1' : 'min-w-[240px] max-w-full']"
:style="isAiPanelMaximized ? {} : { width: aiPanelWidth + 'px' }"
>
<div v-if="!isAiPanelMaximized" class="panel-resize-handle panel-resize-handle--left" @pointerdown="startAiPanelResize" />
@@ -5616,7 +5616,7 @@ onUnmounted(() => {
<div
v-if="!isDetachedWindowContext && showHistory"
v-show="!isSpecialPageActive && !isAiPanelMaximized && !isZenMode"
- :class="[isClassicLayout ? 'h-full relative z-30 isolate bg-background' : 'h-full relative z-30 isolate rounded-md border border-border/80 bg-background', isHistoryPanelMaximized ? 'min-w-0 flex-1' : 'min-w-[240px] max-w-full']"
+ :class="[isClassicLayout ? 'h-full relative z-30 isolate bg-background' : 'h-full relative z-30 isolate dbx-panel bg-background', isHistoryPanelMaximized ? 'min-w-0 flex-1' : 'min-w-[240px] max-w-full']"
:style="isHistoryPanelMaximized ? {} : { width: historyWidth + 'px', maxWidth: 'calc(100% - 240px)' }"
>
<div v-if="!isHistoryPanelMaximized" class="panel-resize-handle panel-resize-handle--left" @pointerdown="startHistoryResize" />
@@ -5638,7 +5638,7 @@ onUnmounted(() => {
<div
v-if="!isDetachedWindowContext && showSqlLibraryPanel"
v-show="!isSpecialPageActive && !isAiPanelMaximized && !isHistoryPanelMaximized && !isZenMode"
- :class="isClassicLayout ? 'h-full shrink-0 relative z-30 isolate bg-background' : 'h-full shrink-0 relative z-30 isolate rounded-md border border-border/80 bg-background'"
+ :class="isClassicLayout ? 'h-full shrink-0 relative z-30 isolate bg-background' : 'h-full shrink-0 relative z-30 isolate dbx-panel bg-background'"
:style="{ width: sqlLibraryWidth + 'px' }"
>
<div class="panel-resize-handle panel-resize-handle--left" @pointerdown="startSqlLibraryResize" />
@@ -5652,7 +5652,7 @@ onUnmounted(() => {
<div
v-if="!isDetachedWindowContext && showSqlFilePanel"
v-show="!isSpecialPageActive && !isAiPanelMaximized && !isHistoryPanelMaximized && !isZenMode"
- :class="isClassicLayout ? 'h-full shrink-0 relative z-30 isolate bg-background' : 'h-full shrink-0 relative z-30 isolate rounded-md border border-border/80 bg-background'"
+ :class="isClassicLayout ? 'h-full shrink-0 relative z-30 isolate bg-background' : 'h-full shrink-0 relative z-30 isolate dbx-panel bg-background'"
:style="{ width: sqlFilePanelWidth + 'px' }"
>
<div class="panel-resize-handle panel-resize-handle--left" @pointerdown="startSqlFilePanelResize" />
diff --git a/apps/desktop/src/components/layout/AppSidebar.vue b/apps/desktop/src/components/layout/AppSidebar.vue
index 458d9fe07a..abf470e287 100644
--- a/apps/desktop/src/components/layout/AppSidebar.vue
+++ b/apps/desktop/src/components/layout/AppSidebar.vue
@@ -228,8 +228,8 @@ defineExpose({ focusSearch, locateTabInSidebar, disconnectAllActiveConnections,
</script>
<template>
- <div data-app-sidebar class="app-sidebar-panel h-full shrink-0 relative select-none" :class="classicLayout ? '' : 'rounded-md border border-border/80 bg-background'" :style="{ width: sidebarWidth + 'px' }" @keydown="onSidebarKeydown">
- <div class="h-full flex flex-col overflow-hidden">
+ <div data-app-sidebar class="app-sidebar-panel h-full shrink-0 relative select-none" :class="classicLayout ? '' : 'dbx-panel bg-background'" :style="{ width: sidebarWidth + 'px' }" @keydown="onSidebarKeydown">
+ <div class="h-full flex flex-col overflow-hidden rounded-[inherit]">
<div class="app-sidebar-toolbar flex items-center gap-px px-3 text-xs font-medium text-muted-foreground border-b bg-muted/20" :class="classicLayout ? 'h-9' : 'h-10'">
<span v-if="showConnectionMultiSelectToolbar" class="flex min-w-0 self-stretch items-center" data-tauri-drag-region>
<span class="truncate" data-tauri-drag-region>{{ t("sidebar.connections") }}</span>
diff --git a/apps/desktop/src/styles/globals.css b/apps/desktop/src/styles/globals.css
index 6df4c2047e..9991268567 100644
--- a/apps/desktop/src/styles/globals.css
+++ b/apps/desktop/src/styles/globals.css
@@ -3106,3 +3106,15 @@ html.dbx-bg-active .cm-scroller {
background-color: transparent !important;
}
+/* Inner workbench panels. One radius step above the old rounded-md (still driven by the
+ * Corner style setting) and an opaque border in dark themes: a translucent 1px border on a
+ * small arc nearly vanishes against the same-coloured shell, and the anti-aliased corner
+ * then reads as stray pixels (most visible on Linux). */
+.dbx-panel {
+ border: 1px solid var(--border);
+ border-radius: var(--dbx-radius-lg);
+}
+
+html.dark .dbx-panel {
+ border-color: color-mix(in srgb, rgb(104 112 126) 40%, var(--background));
+}