Update filter header UI

master
Koitharu 10 months ago
parent c2688517ba
commit fe59a13218
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -27,7 +27,7 @@ class FilterHeaderProducer @Inject constructor(
capabilities = filterCoordinator.capabilities,
tagsProperty = tags,
snapshot = snapshot.listFilter,
limit = 8,
limit = 12,
)
FilterHeaderModel(
chips = chipList,
@ -147,13 +147,13 @@ class FilterHeaderProducer @Inject constructor(
}
val hasTags = result.any { it.data is MangaTag }
if (hasTags) {
result.addLast(moreTagsChip())
result.addFirst(moreTagsChip())
}
return result
}
private fun moreTagsChip() = ChipsView.ChipModel(
titleResId = R.string.more,
isDropdown = true,
titleResId = R.string.genres,
icon = R.drawable.ic_drawer_menu_open,
)
}

Loading…
Cancel
Save