Skip to content

Commit 725ffd8

Browse files
committed
Merge remote-tracking branch 'origin/desktop-scrollbar-impl' into desktop-scrollbar-impl
2 parents d08de58 + d0b485d commit 725ffd8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

core/presentation/src/androidMain/kotlin/zed/rainxch/core/presentation/components/ScrollbarContainer.android.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ actual fun ScrollbarContainer(
1010
listState: LazyListState,
1111
enabled: Boolean,
1212
modifier: Modifier,
13-
content: @Composable () -> Unit,
13+
content: `@Composable` () -> Unit,
1414
) {
15-
content()
15+
Box(modifier = modifier) {
16+
content()
17+
}
1618
}
1719

18-
@Composable
20+
`@Composable`
1921
actual fun ScrollbarContainer(
2022
gridState: LazyStaggeredGridState,
2123
enabled: Boolean,
2224
modifier: Modifier,
23-
content: @Composable () -> Unit,
25+
content: `@Composable` () -> Unit,
2426
) {
25-
content()
27+
Box(modifier = modifier) {
28+
content()
29+
}
30+
}
2631
}

0 commit comments

Comments
 (0)