Move WeekdayHeader out of pager to keep it fixed across pages

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-14 13:56:15 +08:00
parent 9424c518f3
commit f3191aeac9
2 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,6 @@ fun CalendarMonthPage(
}
Column(modifier = modifier) {
WeekdayHeader(modifier = Modifier.fillMaxWidth())
days.chunked(7).forEach { week ->
Row(
modifier = Modifier

View File

@ -2,6 +2,7 @@ package plus.rua.project.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.runtime.Composable
@ -32,6 +33,7 @@ fun CalendarMonthView(
month = currentMonth,
weekNumber = viewModel.getIsoWeekNumber(viewModel.selectedDate)
)
WeekdayHeader(modifier = Modifier.fillMaxWidth())
CalendarPager(
selectedDate = viewModel.selectedDate,
today = today,