Browse Source

chore(nc-gui): increase boxshadow and node size in skeleton

pull/4071/head
braks 2 years ago
parent
commit
6964c2de1b
  1. 6
      packages/nc-gui/components/erd/utils.ts

6
packages/nc-gui/components/erd/utils.ts

@ -26,7 +26,7 @@ interface Relation {
}
const nodeWidth = 300
const nodeHeight = 35
const nodeHeight = 50
export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ErdFlowConfig>) {
const elements = ref<Elements>([])
@ -234,9 +234,9 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<Er
el.targetPosition = Position.Left
el.sourcePosition = Position.Right
el.position = { x: nodeWithPosition.x, y: nodeWithPosition.y }
el.class = 'rounded-lg'
el.class = ['rounded-lg'].join(' ')
el.data.color = color
el.style = { boxShadow: `0 0 0 2px ${color}` }
el.style = { boxShadow: `0 0 0 ${skeleton ? '15px' : '2px'} ${color}` }
} else if (isEdge(el)) {
const node = elements.value.find((nodes) => nodes.id === el.source)
if (node) {

Loading…
Cancel
Save