Browse Source

fix(nc-gui): limit transition duration to 5s

pull/4099/head
braks 2 years ago
parent
commit
aef9300800
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/ShareView.vue

2
packages/nc-gui/components/smartsheet/toolbar/ShareView.vue

@ -43,7 +43,7 @@ const shared = ref<SharedView>({ id: '', meta: {}, password: undefined })
const transitionDuration = computed({
get: () => shared.value.meta.transitionDuration || 250,
set: (duration) => {
shared.value.meta = { ...shared.value.meta, transitionDuration: duration }
shared.value.meta = { ...shared.value.meta, transitionDuration: duration > 5000 ? 5000 : duration }
},
})

Loading…
Cancel
Save