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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(ui): unify tab detail tooltips with sidebar cards
二丫讲梵010898678c5a
diff --git a/apps/desktop/src/components/layout/EditorGroupTabBar.vue b/apps/desktop/src/components/layout/EditorGroupTabBar.vueindex d849d0fa01..ac4678b9b7 100644--- a/apps/desktop/src/components/layout/EditorGroupTabBar.vue+++ b/apps/desktop/src/components/layout/EditorGroupTabBar.vue@@ -2350,10 +2350,10 @@ watch([() => props.specialPageTabs?.settingsActive, () => props.specialPageTabs?<TooltipContent v-if="isConnectionlessPluginTab(entry.tab)" :side="tabTooltipSide" data-plugin-title-tooltip>{{ tabTitleText(entry.tab) }}</TooltipContent>- <TooltipContent v-else :side="tabTooltipSide" class="grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-2 text-xs">+ <TooltipContent v-else :side="tabTooltipSide" surface="popover" class="grid w-max min-w-40 max-w-[min(28rem,calc(100vw-24px))] grid-cols-[auto_minmax(0,1fr)] items-start gap-x-2 gap-y-1 p-2 text-xs leading-5"><template v-for="line in tabTooltipLines(entry.tab, t)" :key="line.label">- <span class="whitespace-nowrap font-medium opacity-70">{{ line.label }}</span>- <span class="min-w-0 break-all">{{ line.value }}</span>+ <span class="whitespace-nowrap text-muted-foreground">{{ line.label }}</span>+ <span class="min-w-0 whitespace-pre-wrap break-all font-mono text-foreground/90">{{ line.value }}</span></template></TooltipContent></Tooltip>diff --git a/apps/desktop/src/components/ui/tooltip/TooltipContent.vue b/apps/desktop/src/components/ui/tooltip/TooltipContent.vueindex e20acab26c..e31c22226e 100644--- a/apps/desktop/src/components/ui/tooltip/TooltipContent.vue+++ b/apps/desktop/src/components/ui/tooltip/TooltipContent.vue@@ -10,13 +10,14 @@ defineOptions({inheritAttrs: false,});-const props = withDefaults(defineProps<TooltipContentProps & { class?: HTMLAttributes["class"] }>(), {+const props = withDefaults(defineProps<TooltipContentProps & { class?: HTMLAttributes["class"]; surface?: "foreground" | "popover" }>(), {sideOffset: 0,+ surface: "foreground",});const emits = defineEmits<TooltipContentEmits>();-const delegatedProps = reactiveOmit(props, "class");+const delegatedProps = reactiveOmit(props, "class", "surface");const forwarded = useForwardPropsEmits(delegatedProps, emits);const { forwardRef } = useFloatingLayerOrder();</script>@@ -29,14 +30,15 @@ const { forwardRef } = useFloatingLayerOrder();v-bind="{ ...forwarded, ...$attrs }":class="cn(- 'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm bg-foreground text-background-solid z-(--dbx-floating-layer-z-index) w-fit max-w-xs origin-(--reka-tooltip-content-transform-origin)',+ 'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm z-(--dbx-floating-layer-z-index) w-fit max-w-xs origin-(--reka-tooltip-content-transform-origin)',+ props.surface === 'popover' ? 'border border-border bg-popover text-popover-foreground shadow-lg' : 'bg-foreground text-background-solid',props.class,)"><slot />- <TooltipArrow class="size-2.5 rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 translate-y-[calc(-50%_-_2px)]" />+ <TooltipArrow class="size-2.5 rotate-45 rounded-[2px] z-50 translate-y-[calc(-50%_-_2px)]" :class="props.surface === 'popover' ? 'border-b border-r border-border bg-popover fill-popover' : 'bg-foreground fill-foreground'" /></TooltipContent></TooltipPortal></template>