diff --git a/package.json b/package.json index e29d4d6..41a8e63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.75.0", + "version": "1.75.1", "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 6a6714f..4b2a842 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -6489,19 +6489,6 @@ export default function WeeklyView() { )} - {/* Visible Hours (only with time grid) */} - {showTimeGrid && ( -
- - { const h = Math.max(0, Math.min(23, parseInt(e.target.value) || 0)); setStartHour(h); saveSetting("startHour", h); }} - style={{ width: "44px", padding: "4px 4px", borderRadius: "6px", border: `1px solid ${darkMode ? "#555" : "#e5e7eb"}`, background: darkMode ? "#1f2937" : "#f3f4f6", color: darkMode ? "#e5e7eb" : "#333", fontSize: "0.8rem", textAlign: "center", outline: "none" }} /> - - { const h = Math.max(1, Math.min(24, parseInt(e.target.value) || 24)); setEndHour(h); saveSetting("endHour", h); }} - style={{ width: "44px", padding: "4px 4px", borderRadius: "6px", border: `1px solid ${darkMode ? "#555" : "#e5e7eb"}`, background: darkMode ? "#1f2937" : "#f3f4f6", color: darkMode ? "#e5e7eb" : "#333", fontSize: "0.8rem", textAlign: "center", outline: "none" }} /> - h -
- )} - {/* Text size */}
@@ -6768,49 +6755,6 @@ export default function WeeklyView() { ))}
- {/* Time Range — desktop only (available in sidebar on tablet) */} - {showTimeGrid && ( -
- -
- { - const val = Math.max( - 0, - Math.min(parseInt(e.target.value) || 0, effectiveEndHour - 1), - ); - setStartHour(val); - saveSetting("startHour", val); - }} - className="w-10 p-0.5 border border-gray-200 dark:border-gray-700 rounded text-center bg-transparent focus:outline-none focus:border-teal-500" - /> - - - { - const val = Math.max( - effectiveStartHour + 1, - Math.min(parseInt(e.target.value) || 24, 24), - ); - setEndHour(val); - saveSetting("endHour", val); - }} - className="w-10 p-0.5 border border-gray-200 dark:border-gray-700 rounded text-center bg-transparent focus:outline-none focus:border-teal-500" - /> -
-
- )} - {/* Slot Duration — desktop only (available in sidebar on tablet) */} {showTimeGrid && (
-
-
- - { - const h = parseInt(e.target.value) || 0; - perView.saveViewSetting("startHour", h, true); - }} - className="weekly-input" - style={{ width: "100%", padding: "8px", border: "1px solid #ddd", borderRadius: "4px" }} - /> -
-
- - { - const h = parseInt(e.target.value) || 0; - perView.saveViewSetting("endHour", h, true); - }} - className="weekly-input" - style={{ width: "100%", padding: "8px", border: "1px solid #ddd", borderRadius: "4px" }} - /> -
-