From 0065c01cf811d9e19cffd70fd6e50ccd95f0136b Mon Sep 17 00:00:00 2001 From: Lambada10 <62511588+Lambada10@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:48:18 +0100 Subject: [PATCH] Make sort dialog scrollable --- .../lambada/songsync/ui/screens/home/components/SortDialog.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/pl/lambada/songsync/ui/screens/home/components/SortDialog.kt b/app/src/main/java/pl/lambada/songsync/ui/screens/home/components/SortDialog.kt index 91ff5dd..36017af 100644 --- a/app/src/main/java/pl/lambada/songsync/ui/screens/home/components/SortDialog.kt +++ b/app/src/main/java/pl/lambada/songsync/ui/screens/home/components/SortDialog.kt @@ -7,6 +7,8 @@ import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.layout.wrapContentWidth +import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.verticalScroll import androidx.compose.material3.AlertDialogDefaults import androidx.compose.material3.BasicAlertDialog import androidx.compose.material3.ExperimentalMaterial3Api @@ -42,7 +44,7 @@ fun SortDialog( shape = MaterialTheme.shapes.large, tonalElevation = AlertDialogDefaults.TonalElevation ) { - Column { + Column(modifier = Modifier.verticalScroll(rememberScrollState())) { Text( text = stringResource(R.string.sort), style = MaterialTheme.typography.titleLarge,