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 375d544 commit af27dc8Copy full SHA for af27dc8
src/main/kotlin/com/mineinabyss/guiy/components/lists/Scrollable.kt
@@ -33,7 +33,6 @@ 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)) }
@@ -50,9 +49,9 @@ fun <T> Scrollable(
50
49
position = navbarPosition,
51
navbar = {
52
NavbarButtons(navbarPosition, navbarBackground) {
53
- if (alwaysShowButtons || line > 0) previousButton()
+ if (line > 0) previousButton()
54
else Spacer(1, 1)
55
- if (alwaysShowButtons || end < items.size) nextButton()
+ if (end < items.size) nextButton()
56
57
58
0 commit comments