From b1804d3d31c9962ef47d1751ef146ddc555c137e Mon Sep 17 00:00:00 2001 From: ArneBo Date: Thu, 19 Dec 2024 11:10:25 +0100 Subject: [PATCH] fix(ui): responsive sidebar stays open on desktop when url changes --- front/src/ui/components/Sidebar.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/front/src/ui/components/Sidebar.vue b/front/src/ui/components/Sidebar.vue index cbb1566e8..b3512b814 100644 --- a/front/src/ui/components/Sidebar.vue +++ b/front/src/ui/components/Sidebar.vue @@ -27,6 +27,7 @@ Sidebar on slim screen const isCollapsed = ref(false) const route = useRoute() + watch(() => route.path, () => ( isCollapsed.value = true )) const { openShortcutsModal } = defineProps<{ openShortcutsModal: ()=> void }>() @@ -90,7 +91,7 @@ const uploads = useUploadsStore()