From 10e7b450f3b5066d852f4e200f2c1f6c1153fa16 Mon Sep 17 00:00:00 2001 From: Barnabas Balogh Date: Sat, 6 Jun 2026 17:37:47 +0000 Subject: [PATCH] fix(series): make season selector bottom sheet scrollable Replace the non-scrollable Column with a LazyColumn in the season selector ModalBottomSheet so the sheet content scrolls when there are many seasons. --- .../series/components/SeriesComponents.kt | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/hu/bbara/purefin/ui/screen/series/components/SeriesComponents.kt b/app/src/main/java/hu/bbara/purefin/ui/screen/series/components/SeriesComponents.kt index f4f20a1e..90cf82b0 100644 --- a/app/src/main/java/hu/bbara/purefin/ui/screen/series/components/SeriesComponents.kt +++ b/app/src/main/java/hu/bbara/purefin/ui/screen/series/components/SeriesComponents.kt @@ -12,6 +12,8 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.ArrowBack @@ -259,18 +261,21 @@ internal fun SeasonTabs( ModalBottomSheet( onDismissRequest = { showBottomSheet = false }, ) { - Column( + LazyColumn( modifier = Modifier .fillMaxWidth() .padding(bottom = 24.dp) ) { - Text( - text = "Select Season", - style = MaterialTheme.typography.titleLarge, - color = scheme.onSurface, - modifier = Modifier.padding(horizontal = 24.dp, vertical = 8.dp) - ) - seasons.forEach { season -> + item { + Text( + text = "Select Season", + style = MaterialTheme.typography.titleLarge, + color = scheme.onSurface, + modifier = Modifier.padding(horizontal = 24.dp, vertical = 8.dp) + ) + } + + items(seasons) { season -> ListItem( headlineContent = { Text(text = season.name)