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。

Merge remote-tracking branch 'origin/main'

yavon007e85f8bc6fdfc
diff --cc src/components/sidebar/TreeItem.vue
index 901fd28771,5e7a492540..e76744b17c
--- a/src/components/sidebar/TreeItem.vue
+++ b/src/components/sidebar/TreeItem.vue
@@@ -641,11 -757,19 +762,20 @@@ const isDragging = computed(() =
<ContextMenuTrigger as-child>
<div>
<div
- class="group flex min-w-0 items-center gap-1.5 py-1 px-2 rounded-sm cursor-pointer hover:bg-accent transition-colors"
+ class="group flex min-w-0 items-center gap-1.5 py-1 px-2 rounded-sm cursor-pointer hover:bg-accent transition-colors relative"
+ :class="{
+ 'ring-1 ring-primary/50 bg-primary/5': showDropInside,
+ 'opacity-50': isDragging,
+ }"
:style="{ paddingLeft }"
@click="onClick"
+ @mousedown="isDraggable ? startDrag($event, node.id, node.type) : undefined"
+ @mousemove="isDropTarget ? updateTarget($event, node.id, node.type) : undefined"
+ @mouseleave="clearTarget(node.id)"
+ @dblclick="onDblClick"
>
+ <div v-if="showDropBefore" class="absolute right-2 top-0 h-0.5 bg-primary rounded-full pointer-events-none" :style="{ left: paddingLeft }" />
+ <div v-if="showDropAfter" class="absolute right-2 bottom-0 h-0.5 bg-primary rounded-full pointer-events-none" :style="{ left: paddingLeft }" />
<template v-if="canExpand">
<button
type="button"