diff --git a/package.json b/package.json index 3a75bc8..7ca9ec1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.39.4", + "version": "1.40.0", "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/app/globals.css b/src/app/globals.css index c531b77..d08370a 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -478,11 +478,12 @@ h3 { /* Weekly Main Container */ .weekly-container { - min-height: 100vh; + height: 100vh; background: var(--weekly-bg); font-family: var(--weekly-font); display: flex; flex-direction: column; + overflow: hidden; } /* Weekly Header */ @@ -497,6 +498,7 @@ h3 { align-items: center; justify-content: space-between; position: relative; + flex-shrink: 0; } .weekly-logo { flex-shrink: 0; @@ -1179,11 +1181,11 @@ h3 { /* Someday Section */ .weekly-someday { - background-color: #f9f9f9; + background-color: #f9f9f9; width: 100%; padding: 0 1rem; - transition: max-height 0.3s ease; position: relative; + flex-shrink: 0; } .weekly-container.dark-mode .weekly-someday { @@ -1191,6 +1193,8 @@ h3 { } .weekly-someday.collapsed { + height: 30px !important; + min-height: 30px; max-height: 30px; overflow: hidden; } @@ -2652,6 +2656,7 @@ h3 { border-top: 1px solid var(--weekly-border); padding: 2px 0; position: relative; + flex-shrink: 0; } /* Resize handle for draggable section borders */ @@ -2665,6 +2670,7 @@ h3 { touch-action: none; position: relative; z-index: 10; + flex-shrink: 0; border-top: 1px solid var(--weekly-border, #e5e7eb); border-bottom: 1px solid var(--weekly-border, #e5e7eb); } diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index c24b0fa..0d403a8 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -1641,6 +1641,7 @@ export default function WeeklyView() { const startResize = useCallback((e: React.MouseEvent | React.TouchEvent, target: 'someday' | 'allday') => { e.preventDefault(); + e.stopPropagation(); const clientY = 'touches' in e ? e.touches[0].clientY : e.clientY; const section = target === 'someday' ? somedaySectionRef.current : (document.querySelector('.all-day-events-section') as HTMLElement); if (!section) return; @@ -3589,7 +3590,10 @@ export default function WeeklyView() { const goToToday = () => { const d = new Date(); d.setHours(0, 0, 0, 0); - d.setDate(d.getDate() + (profile?.startDayOffset || 0)); + // Only apply startDayOffset for multi-day views; on single-day view, go directly to today + if (viewDays > 1) { + d.setDate(d.getDate() + (profile?.startDayOffset || 0)); + } setCurrentWeekStart(d); }; @@ -6395,9 +6399,9 @@ export default function WeeklyView() { })()} {/* Main Grid with Time Column */} - {viewStyle !== "kanban" &&