Skip to content

Commit af27dc8

Browse files
committed
Revert "refactor: add toggle to always show buttons"
This reverts commit 375d544.
1 parent 375d544 commit af27dc8

File tree

1 file changed

+2
-3
lines changed
  • src/main/kotlin/com/mineinabyss/guiy/components/lists

1 file changed

+2
-3
lines changed

src/main/kotlin/com/mineinabyss/guiy/components/lists/Scrollable.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fun <T> Scrollable(
3333
isHideTooltip = true
3434
}
3535
},
36-
alwaysShowButtons: Boolean = false,
3736
content: @Composable (page: List<T>) -> Unit,
3837
) {
3938
var size by remember { mutableStateOf(Size(0, 0)) }
@@ -50,9 +49,9 @@ fun <T> Scrollable(
5049
position = navbarPosition,
5150
navbar = {
5251
NavbarButtons(navbarPosition, navbarBackground) {
53-
if (alwaysShowButtons || line > 0) previousButton()
52+
if (line > 0) previousButton()
5453
else Spacer(1, 1)
55-
if (alwaysShowButtons || end < items.size) nextButton()
54+
if (end < items.size) nextButton()
5655
else Spacer(1, 1)
5756
}
5857
},

0 commit comments

Comments
 (0)