fix: grid size slider (#9542)

(cherry picked from commit 9c07451d957761b387663caef8b0f46746aa98e1)
This commit is contained in:
Artemis-CtrlAltDel 2023-05-27 03:41:22 +01:00 committed by Jobobby04
parent 6d5087b638
commit 5b110cec23

View File

@ -273,7 +273,9 @@ private fun ColumnScope.DisplayPage(
}
val columns by columnPreference.changes().collectAsState(initial = 0)
Column {
Column(
Modifier.weight(.5f),
) {
Text(
stringResource(id = R.string.pref_library_columns),
style = MaterialTheme.typography.bodyMedium,
@ -288,7 +290,7 @@ private fun ColumnScope.DisplayPage(
Slider(
value = columns.toFloat(),
onValueChange = { columnPreference.set(it.toInt()) },
modifier = Modifier.weight(1f),
modifier = Modifier.weight(1.5f),
valueRange = 0f..10f,
steps = 10,
)