From 51c716ae971c83e5737807c242722ef2b4115b14 Mon Sep 17 00:00:00 2001 From: kutesir Date: Tue, 7 Jul 2026 01:13:23 +0300 Subject: [PATCH] Calendar: fix week/3-day dead space (pin content to top) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timeline views' content is a thin header + a greedy ScrollView (≈0 ideal height), so the top-level VStack shrank and the bottomTrailing ZStack floated it to the bottom — leaving a big empty gap above the day header. Month view has a tall fixed grid so it never surfaced. Pin the VStack to fill height and top-align. Co-Authored-By: Claude Opus 4.8 --- KisaniCal/Views/CalendarView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/KisaniCal/Views/CalendarView.swift b/KisaniCal/Views/CalendarView.swift index 4d479d9..b4ce8d9 100644 --- a/KisaniCal/Views/CalendarView.swift +++ b/KisaniCal/Views/CalendarView.swift @@ -392,6 +392,9 @@ struct CalendarView: View { calDayTaskListView } } + // Pin to the top so views whose content doesn't fill the height + // (week / 3-day timelines) don't float to the bottom of the ZStack. + .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top) FAB { showAddTask = true } .padding(.trailing, 20).padding(.bottom, 10)