From 0e9a47ada72b5fe3aade00c25d5a37cbc9305503 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:15:39 +0200 Subject: [PATCH] chore(nc-gui): dont fit view on init if skeleton mode --- packages/nc-gui/components/erd/Flow.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/erd/Flow.vue b/packages/nc-gui/components/erd/Flow.vue index 542cb2e6b1..fb0ba5ccc0 100644 --- a/packages/nc-gui/components/erd/Flow.vue +++ b/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)