From ca67817b7b5427263efb3f25f5d4b712b86c7a83 Mon Sep 17 00:00:00 2001 From: mARTin Date: Thu, 2 Apr 2026 22:51:01 +0200 Subject: [PATCH] fix: revert slot options to 15/20/30/60, fix sidebar indicator - Removed 45m, restored 60m in CellDuration type and all button groups - Slot indicator now correctly highlights the active slot in the sidebar (was broken because 60m users had no matching button when 45 was listed) v1.81.17 --- package.json | 2 +- src/components/WeeklyView.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 42605f6..e728ad3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.81.16", + "version": "1.81.17", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 0a88379..4917319 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -196,7 +196,7 @@ export interface SomedayList { } // Time grid configuration options -export type CellDuration = 15 | 20 | 30 | 45 | 60; +export type CellDuration = 15 | 20 | 30 | 60; const DEFAULT_SOMEDAY_SLOT_COUNT = 5; const getSomedaySlotCount = (tasks: Task[]) => { @@ -1458,7 +1458,6 @@ export default function WeeklyView() { case 15: return 25; case 20: return 30; case 30: return 35; - case 45: return 45; case 60: return 50; default: return 50; } @@ -5450,7 +5449,7 @@ export default function WeeklyView() { {profile.language === "de" ? "Zeitfenster" : "Slot"}
- {(([15, 20, 30, 45] as CellDuration[])).map((d) => ( + {(([15, 20, 30, 60] as CellDuration[])).map((d) => (