Fix Scrollbar when the list contains sticky header (#8181)

* Fix Scrollbar when the list contains sticky header

* Fix VerticalFastScroller when the list contains sticky header

* exposé
This commit is contained in:
Ivan Iskandar
2022-10-10 22:59:01 +07:00
committed by GitHub
parent 8500add09f
commit fba244423f
3 changed files with 30 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ import eu.kanade.presentation.components.BadgeGroup
import eu.kanade.presentation.components.EmptyScreen
import eu.kanade.presentation.components.LoadingScreen
import eu.kanade.presentation.components.ScrollbarLazyColumn
import eu.kanade.presentation.components.Scroller.STICKY_HEADER_KEY_PREFIX
import eu.kanade.presentation.theme.header
import eu.kanade.presentation.util.horizontalPadding
import eu.kanade.presentation.util.plus
@@ -85,7 +86,7 @@ private fun MigrateSourceList(
ScrollbarLazyColumn(
contentPadding = contentPadding + topPaddingValues,
) {
stickyHeader(key = "header") {
stickyHeader(key = STICKY_HEADER_KEY_PREFIX) {
Row(
modifier = Modifier
.background(MaterialTheme.colorScheme.background)