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 bc780fc commit 17ae426Copy full SHA for 17ae426
1 file changed
app/src/main/java/org/jellyfin/androidtv/ui/browsing/v2/LibraryBrowseFragment.kt
@@ -531,9 +531,9 @@ class LibraryBrowseFragment : Fragment() {
531
BoxWithConstraints(modifier = modifier.fillMaxSize()) {
532
val availableHeight = maxHeight - minPadding * 2
533
val cellHeight = cardHeight.dp + 16.dp
534
- val rowCount = (availableHeight / cellHeight).toInt().coerceAtLeast(2)
+ val rowCount = (availableHeight / cellHeight).toInt().coerceAtLeast(1)
535
val gridHeight = cardHeight.dp * rowCount + 16.dp * (rowCount - 1)
536
- val verticalPadding = (maxHeight - gridHeight) / 2
+ val verticalPadding = ((maxHeight - gridHeight) / 2).coerceAtLeast(0.dp)
537
538
LazyHorizontalGrid(
539
rows = GridCells.Fixed(rowCount),
0 commit comments