Fix overflow in ChangeCategoryDialog (#7883)
This commit is contained in:
parent
8e9b1124cd
commit
be7108a2ee
@ -6,6 +6,8 @@ import androidx.compose.foundation.layout.Row
|
|||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.foundation.rememberScrollState
|
||||||
|
import androidx.compose.foundation.verticalScroll
|
||||||
import androidx.compose.material3.AlertDialog
|
import androidx.compose.material3.AlertDialog
|
||||||
import androidx.compose.material3.Checkbox
|
import androidx.compose.material3.Checkbox
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
@ -85,7 +87,9 @@ fun ChangeCategoryDialog(
|
|||||||
Text(text = stringResource(R.string.action_move_category))
|
Text(text = stringResource(R.string.action_move_category))
|
||||||
},
|
},
|
||||||
text = {
|
text = {
|
||||||
Column {
|
Column(
|
||||||
|
modifier = Modifier.verticalScroll(rememberScrollState()),
|
||||||
|
) {
|
||||||
selection.forEach { checkbox ->
|
selection.forEach { checkbox ->
|
||||||
val onChange: (CheckboxState<Category>) -> Unit = {
|
val onChange: (CheckboxState<Category>) -> Unit = {
|
||||||
val index = selection.indexOf(it)
|
val index = selection.indexOf(it)
|
||||||
|
Loading…
Reference in New Issue
Block a user