mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 16:49:15 +01:00
Make global search results more compact
This commit is contained in:
parent
5d90ba8aa0
commit
3be05fbf9b
@ -20,14 +20,11 @@ fun GlobalSearchCardRow(
|
|||||||
onLongClick: (Manga) -> Unit,
|
onLongClick: (Manga) -> Unit,
|
||||||
) {
|
) {
|
||||||
LazyRow(
|
LazyRow(
|
||||||
contentPadding = PaddingValues(
|
contentPadding = PaddingValues(MaterialTheme.padding.small),
|
||||||
horizontal = MaterialTheme.padding.medium,
|
horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.tiny),
|
||||||
vertical = MaterialTheme.padding.small,
|
|
||||||
),
|
|
||||||
horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small),
|
|
||||||
) {
|
) {
|
||||||
items(titles) { title ->
|
items(titles) {
|
||||||
val title by getManga(title)
|
val title by getManga(it)
|
||||||
GlobalSearchCard(
|
GlobalSearchCard(
|
||||||
title = title.title,
|
title = title.title,
|
||||||
cover = title.asMangaCover(),
|
cover = title.asMangaCover(),
|
||||||
|
@ -18,7 +18,7 @@ fun GlobalSearchCard(
|
|||||||
onClick: () -> Unit,
|
onClick: () -> Unit,
|
||||||
onLongClick: () -> Unit,
|
onLongClick: () -> Unit,
|
||||||
) {
|
) {
|
||||||
Box(modifier = Modifier.width(128.dp)) {
|
Box(modifier = Modifier.width(96.dp)) {
|
||||||
MangaComfortableGridItem(
|
MangaComfortableGridItem(
|
||||||
title = title,
|
title = title,
|
||||||
coverData = cover,
|
coverData = cover,
|
||||||
|
Loading…
Reference in New Issue
Block a user