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。

style(grid): flatten error card visual nesting

t8y2f64827a60788
diff --git a/apps/desktop/src/components/ui/ErrorBanner.vue b/apps/desktop/src/components/ui/ErrorBanner.vue
index 42d76407b1..c868fbdba3 100644
--- a/apps/desktop/src/components/ui/ErrorBanner.vue
+++ b/apps/desktop/src/components/ui/ErrorBanner.vue
@@ -41,15 +41,15 @@ async function copy() {
</script>
<template>
- <!-- card: 卡片类报错信息面板 -->
- <div v-if="variant === 'card'" class="mx-3 my-2 rounded-lg border border-destructive/30 bg-destructive/10 p-3 shadow-sm shrink-0 select-text flex flex-col gap-2">
- <div class="flex items-center justify-between gap-2 border-b border-destructive/20 pb-2">
- <div data-native-clipboard class="flex items-center gap-2 font-semibold text-xs text-destructive">
- <TriangleAlert class="h-4 w-4 text-destructive shrink-0" aria-hidden="true" />
+ <!-- card: 卡片类报错信息面板(单层框架:标题行 + 正文,正文不再嵌套内框) -->
+ <div v-if="variant === 'card'" class="mx-3 my-2 rounded-lg border border-destructive/30 bg-destructive/10 px-3 py-2 shrink-0 select-text flex flex-col gap-1.5">
+ <div class="flex items-center justify-between gap-2">
+ <div data-native-clipboard class="flex items-center gap-1.5 font-medium text-xs text-destructive">
+ <TriangleAlert class="h-3.5 w-3.5 text-destructive shrink-0" aria-hidden="true" />
<span>{{ displayTitle }}</span>
</div>
- <div class="flex items-center gap-1.5 shrink-0">
- <Button variant="outline" size="sm" class="h-6 gap-1 px-2 text-[11px] border-destructive/30 text-destructive hover:bg-destructive/15 hover:text-destructive" :aria-label="t('grid.copy')" @click.stop="copy">
+ <div class="flex items-center gap-0.5 shrink-0">
+ <Button variant="ghost" size="sm" class="h-6 gap-1 px-1.5 text-[11px] text-destructive/80 hover:text-destructive hover:bg-destructive/15" :aria-label="t('grid.copy')" @click.stop="copy">
<Copy class="h-3 w-3" />
{{ t("grid.copy") }}
</Button>
@@ -58,7 +58,7 @@ async function copy() {
</Button>
</div>
</div>
- <div data-native-clipboard class="max-h-40 min-h-[56px] overflow-y-auto rounded bg-background/80 dark:bg-background/50 border border-destructive/20 p-2.5 text-xs font-mono leading-relaxed text-destructive break-words whitespace-pre-wrap select-text cursor-text" @mousedown.stop @click.stop>
+ <div data-native-clipboard class="max-h-40 overflow-y-auto text-xs font-mono leading-relaxed text-destructive break-words whitespace-pre-wrap select-text cursor-text" @mousedown.stop @click.stop>
{{ message }}
</div>
</div>