From 3be05fbf9b41478386026b3156f3947e7fb1643e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 8 Jan 2023 10:48:35 -0500 Subject: [PATCH] Make global search results more compact --- .../browse/components/GlobalSearchCardRow.kt | 11 ++++------- .../browse/components/GlobalSerachCard.kt | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSearchCardRow.kt b/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSearchCardRow.kt index 7b6887fc5..d2f15a29e 100644 --- a/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSearchCardRow.kt +++ b/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSearchCardRow.kt @@ -20,14 +20,11 @@ fun GlobalSearchCardRow( onLongClick: (Manga) -> Unit, ) { LazyRow( - contentPadding = PaddingValues( - horizontal = MaterialTheme.padding.medium, - vertical = MaterialTheme.padding.small, - ), - horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small), + contentPadding = PaddingValues(MaterialTheme.padding.small), + horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.tiny), ) { - items(titles) { title -> - val title by getManga(title) + items(titles) { + val title by getManga(it) GlobalSearchCard( title = title.title, cover = title.asMangaCover(), diff --git a/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSerachCard.kt b/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSerachCard.kt index 7279b8bb1..f0dec5335 100644 --- a/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSerachCard.kt +++ b/app/src/main/java/eu/kanade/presentation/browse/components/GlobalSerachCard.kt @@ -18,7 +18,7 @@ fun GlobalSearchCard( onClick: () -> Unit, onLongClick: () -> Unit, ) { - Box(modifier = Modifier.width(128.dp)) { + Box(modifier = Modifier.width(96.dp)) { MangaComfortableGridItem( title = title, coverData = cover,