diff --git a/packages/admin/app.vue b/packages/admin/app.vue index 2c89bb6..92e8a26 100644 --- a/packages/admin/app.vue +++ b/packages/admin/app.vue @@ -57,12 +57,10 @@ @@ -79,8 +77,11 @@
@@ -104,17 +105,18 @@ backendClient.setEndpoint(useAppConfig().backendBase) // View const viewShowFullNavigationBar = ref(false) -const viewToggleFullNavigationBarAnimation = ref<'' | 'expanding' | 'collapsing'>('expanding') +const viewShowFullNavigationBarToggles = ref(0) +const viewShowFullNavigationBarRealState = ref(false) +const viewShowPageContent = ref(true) watch(viewShowFullNavigationBar, (value) => { + viewShowFullNavigationBarToggles.value++ + setTimeout(() => { + viewShowFullNavigationBarRealState.value = value + }, 300) if (value) { - viewToggleFullNavigationBarAnimation.value = 'collapsing' + viewShowPageContent.value = !value } else { - setTimeout(() => { - viewToggleFullNavigationBarAnimation.value = '' - }, 300) - setTimeout(() => { - viewToggleFullNavigationBarAnimation.value = 'expanding' - }, 350) + setTimeout(() => { viewShowPageContent.value = !value }, 150) } })