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:
parent
9424c518f3
commit
f3191aeac9
@ -27,8 +27,6 @@ fun CalendarMonthPage(
|
||||
}
|
||||
|
||||
Column(modifier = modifier) {
|
||||
WeekdayHeader(modifier = Modifier.fillMaxWidth())
|
||||
|
||||
days.chunked(7).forEach { week ->
|
||||
Row(
|
||||
modifier = Modifier
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user