From d19be19b87c37003d637ad3eda06636fa3fca8ea Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Sat, 21 Feb 2026 15:26:15 +0700 Subject: [PATCH] frontend: switch calendar zoom to slider and add intuitive expand icons --- frontend/app.vue | 88 +++++++++++++++++++++++++++++++----------------- 1 file changed, 57 insertions(+), 31 deletions(-) diff --git a/frontend/app.vue b/frontend/app.vue index 2c1f0f4..a023f4f 100644 --- a/frontend/app.vue +++ b/frontend/app.vue @@ -1909,13 +1909,6 @@ const calendarViewOptions: { value: CalendarView; label: string }[] = [ { value: "agenda", label: "Agenda" }, ]; -const calendarZoomOptions: Array<{ value: number; label: string }> = [ - { value: 1, label: "400%" }, - { value: 2, label: "250%" }, - { value: 3, label: "100%" }, - { value: 4, label: "50%" }, -]; - const calendarZoomLevel = computed({ get() { if (calendarView.value === "day") return 1; @@ -1941,6 +1934,13 @@ const calendarZoomLevel = computed({ }, }); +const calendarZoomLabel = computed(() => { + if (calendarView.value === "day") return "Day"; + if (calendarView.value === "week") return "Week"; + if (calendarView.value === "month" || calendarView.value === "agenda") return "Month"; + return "Year"; +}); + const monthCells = computed(() => { const year = calendarCursor.value.getFullYear(); const month = calendarCursor.value.getMonth(); @@ -3649,15 +3649,20 @@ async function decideFeedCard(card: FeedCard, decision: "accepted" | "rejected")
Zoom - - {{ option.label }} - - + + {{ calendarZoomLabel }} + +
@@ -3711,10 +3716,14 @@ async function decideFeedCard(card: FeedCard, decision: "accepted" | "rejected")