mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
Two related fixes for the calendar surface: 1. Filter switch leaving the user in the past section. The feed-content state already calls sendToTop() when feedKey changes, but the calendar feed's LazyColumn never subscribed to the scrollToTop signal — so a filter switch (e.g. People List → Global) preserved the previous scroll position. Often that landed the user mid-feed in the "Past" section of the much larger Global list, looking like "the events didn't come back". Added a LazyListState + WatchScrollToTop wiring. 2. Week/month/day headers stayed pinned when the DisappearingScaffold's top bar collapsed on scroll. The views had a Column with disappearingScaffoldPadding() that reserved a fixed top inset, so when the bar slid up the headers stayed put and a visual gap opened. Pulled the nav header (and for the week view, the WeekStrip + DaySummaryHeader) into the same LazyColumn as the events, with rememberFeedContentPadding as contentPadding — now the whole stack scrolls under the bar together.