mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 06:26:00 +00:00
diagram - move by click on table anywhere
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
|
||||
<div
|
||||
class="line"
|
||||
class:canSelectColumns={settings?.canSelectColumns}
|
||||
bind:this={domLine}
|
||||
draggable={!!settings?.allowCreateRefByDrag}
|
||||
on:dragstart={e => {
|
||||
@@ -95,7 +96,7 @@
|
||||
...column,
|
||||
designerId,
|
||||
})}
|
||||
use:contextMenu={createMenu}
|
||||
use:contextMenu={settings?.canSelectColumns ? createMenu : '__no_menu'}
|
||||
>
|
||||
{#if settings?.allowColumnOperations}
|
||||
<CheckboxField
|
||||
@@ -139,13 +140,13 @@
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.line:hover {
|
||||
:global(.dbgate-screen) .line.canSelectColumns:hover {
|
||||
background: var(--theme-bg-1);
|
||||
}
|
||||
.line.isDragSource {
|
||||
:global(.dbgate-screen) .line.isDragSource {
|
||||
background: var(--theme-bg-gold);
|
||||
}
|
||||
.line.isDragTarget {
|
||||
:global(.dbgate-screen) .line.isDragTarget {
|
||||
background: var(--theme-bg-gold);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user