Avoid drawing surface background twice for comments fragment

This commit is contained in:
Stypox 2024-11-11 16:15:36 +01:00
parent 62ab9bd740
commit 13585ca0be
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 47 additions and 49 deletions

View File

@ -48,7 +48,6 @@ private fun CommentSection(
val nestedScrollInterop = rememberNestedScrollInteropConnection() val nestedScrollInterop = rememberNestedScrollInteropConnection()
val state = rememberLazyListState() val state = rememberLazyListState()
Surface(color = MaterialTheme.colorScheme.background) {
LazyColumnThemedScrollbar(state = state) { LazyColumnThemedScrollbar(state = state) {
LazyColumn( LazyColumn(
modifier = Modifier.nestedScroll(nestedScrollInterop), modifier = Modifier.nestedScroll(nestedScrollInterop),
@ -118,7 +117,6 @@ private fun CommentSection(
} }
} }
} }
}
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO) @Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES) @Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)