Skip to content

Commit 357e393

Browse files
authored
Merge pull request #123 from Producdevity/fix/dialog-styling
fix: dialog styling in landscape
2 parents 9d77e10 + 2779346 commit 357e393

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/OxGames/Pluvia/ui/component/dialog/SingleChoiceDialog.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import androidx.compose.foundation.layout.Row
66
import androidx.compose.foundation.layout.fillMaxWidth
77
import androidx.compose.foundation.layout.height
88
import androidx.compose.foundation.layout.padding
9+
import androidx.compose.foundation.rememberScrollState
910
import androidx.compose.foundation.selection.selectable
1011
import androidx.compose.foundation.selection.selectableGroup
12+
import androidx.compose.foundation.verticalScroll
1113
import androidx.compose.material.icons.Icons
1214
import androidx.compose.material.icons.filled.BrightnessMedium
1315
import androidx.compose.material3.AlertDialog
@@ -56,7 +58,7 @@ fun SingleChoiceDialog(
5658
},
5759
title = { Text(text = title) },
5860
text = {
59-
Column(modifier = Modifier.selectableGroup()) {
61+
Column(modifier = Modifier.selectableGroup().verticalScroll(rememberScrollState())) {
6062
items.forEachIndexed { index, entry ->
6163
Row(
6264
Modifier

0 commit comments

Comments
 (0)