Browse Source

chore(nc-gui): dont fit view on init if skeleton mode

pull/4071/head
braks 2 years ago
parent
commit
0e9a47ada7
  1. 8
      packages/nc-gui/components/erd/Flow.vue

8
packages/nc-gui/components/erd/Flow.vue

@ -23,9 +23,11 @@ const showSkeleton = computed(() => viewport.value.zoom < 0.25)
function init() {
layout(showSkeleton.value)
setTimeout(() => {
fitView({ duration: 500 })
}, 100)
if (!showSkeleton.value) {
setTimeout(() => {
fitView({ duration: 300 })
}, 100)
}
}
onPaneReady(init)

Loading…
Cancel
Save