From 9c07451d957761b387663caef8b0f46746aa98e1 Mon Sep 17 00:00:00 2001 From: Artemis-CtrlAltDel <75863595+Artemis-CtrlAltDel@users.noreply.github.com> Date: Sat, 27 May 2023 03:41:22 +0100 Subject: [PATCH] fix: grid size slider (#9542) --- .../eu/kanade/presentation/library/LibrarySettingsDialog.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt b/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt index 0ed6e3400e..c45e6fa373 100644 --- a/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt +++ b/app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt @@ -220,7 +220,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, @@ -235,7 +237,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, )