From ceaa264a3af8fbd5c4780809f45e397208046acd Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sat, 26 Feb 2022 15:19:39 -0500 Subject: [PATCH] Improve category select dialog --- .../kotlin/ca/gosyer/ui/manga/components/MangaMenu.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/presentation/src/desktopMain/kotlin/ca/gosyer/ui/manga/components/MangaMenu.kt b/presentation/src/desktopMain/kotlin/ca/gosyer/ui/manga/components/MangaMenu.kt index 09905d0a..601df24c 100644 --- a/presentation/src/desktopMain/kotlin/ca/gosyer/ui/manga/components/MangaMenu.kt +++ b/presentation/src/desktopMain/kotlin/ca/gosyer/ui/manga/components/MangaMenu.kt @@ -149,15 +149,18 @@ fun CategorySelectDialog( LazyColumn(state = listState) { items(categories) { category -> Row( - Modifier.fillMaxWidth().padding(8.dp) + Modifier.fillMaxWidth() + .height(48.dp) .clickable { if (category in enabledCategories) { enabledCategories -= category } else { enabledCategories += category } - }, - horizontalArrangement = Arrangement.SpaceBetween + } + .padding(horizontal = 16.dp), + horizontalArrangement = Arrangement.SpaceBetween, + verticalAlignment = Alignment.CenterVertically ) { Text(category.name, style = MaterialTheme.typography.subtitle1) Checkbox(