We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb34982 commit 375d544Copy full SHA for 375d544
src/main/kotlin/com/mineinabyss/guiy/components/lists/Scrollable.kt
@@ -33,6 +33,7 @@ fun <T> Scrollable(
33
isHideTooltip = true
34
}
35
},
36
+ alwaysShowButtons: Boolean = false,
37
content: @Composable (page: List<T>) -> Unit,
38
) {
39
var size by remember { mutableStateOf(Size(0, 0)) }
@@ -49,9 +50,9 @@ fun <T> Scrollable(
49
50
position = navbarPosition,
51
navbar = {
52
NavbarButtons(navbarPosition, navbarBackground) {
- if (line > 0) previousButton()
53
+ if (alwaysShowButtons || line > 0) previousButton()
54
else Spacer(1, 1)
- if (end < items.size) nextButton()
55
+ if (alwaysShowButtons || end < items.size) nextButton()
56
57
58
0 commit comments