diff --git a/packages/frontend/src/ui/_common_/navbar.vue b/packages/frontend/src/ui/_common_/navbar.vue index bd5e0bba8a..234972e76d 100644 --- a/packages/frontend/src/ui/_common_/navbar.vue +++ b/packages/frontend/src/ui/_common_/navbar.vue @@ -9,12 +9,12 @@ SPDX-License-Identifier: AGPL-3.0-only
- {{ i18n.ts.timeline }} + {{ i18n.ts.timeline }}
- {{ i18n.ts.controlPanel }} + {{ i18n.ts.controlPanel }} - {{ i18n.ts.settings }} + {{ i18n.ts.settings }}
@@ -52,7 +52,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.note }}
@@ -128,7 +128,13 @@ watch(store.r.menuDisplay, () => { }); function toggleIconOnly() { - store.set('menuDisplay', iconOnly.value ? 'sideFull' : 'sideIcon'); + if (document.startViewTransition && prefer.s.animation) { + document.startViewTransition(() => { + store.set('menuDisplay', iconOnly.value ? 'sideFull' : 'sideIcon'); + }); + } else { + store.set('menuDisplay', iconOnly.value ? 'sideFull' : 'sideIcon'); + } } function openAccountMenu(ev: MouseEvent) {