From 387597755d91c5fa0409da15687fb3c027e6f4b8 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Tue, 29 Apr 2025 09:28:49 +0200 Subject: [PATCH] Added sidebar toggle --- components/calendar/CurrentDate.vue | 4 +-- components/global/sidebar/Sidebar.vue | 49 ++++++++++++++++++++------- 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/components/calendar/CurrentDate.vue b/components/calendar/CurrentDate.vue index 70676ba..5f96d90 100644 --- a/components/calendar/CurrentDate.vue +++ b/components/calendar/CurrentDate.vue @@ -37,8 +37,8 @@ const isToday = computed(() => getDifferenceInDays(defaultDate, selectedDate.val - - + + diff --git a/components/global/sidebar/Sidebar.vue b/components/global/sidebar/Sidebar.vue index 1cbe954..04852d7 100644 --- a/components/global/sidebar/Sidebar.vue +++ b/components/global/sidebar/Sidebar.vue @@ -2,6 +2,7 @@ import { PhCompass, PhGlobeHemisphereEast, PhHurricane, PhX } from "@phosphor-icons/vue" import type { SidebarMenuActionType, SidebarMenuIcon } from "./SidebarProps"; import { cn } from "~/lib/utils"; +import { breakpointsTailwind } from "@vueuse/core" const { revealAdvancedSearch } = useCalendar() const { toggleSidebar } = useUiStore() @@ -24,6 +25,10 @@ function computeMenuItemIcon(iconString: SidebarMenuIcon) { } } +const breakpoints = useBreakpoints( + breakpointsTailwind +) + // const sidebarRef = ref(null) // onClickOutside(sidebarRef, () => { @@ -35,32 +40,52 @@ function computeMenuItemIcon(iconString: SidebarMenuIcon) { - - - - + + + + - - + + - + + + + + + {{ $t('pages.explore.menuLabel') }} + + @@ -106,9 +131,7 @@ function computeMenuItemIcon(iconString: SidebarMenuIcon) { - - - +
@@ -106,9 +131,7 @@ function computeMenuItemIcon(iconString: SidebarMenuIcon) {