Made h3 tags smaller and sorted tag filters by name
parent
f45cb17009
commit
3badc4889b
|
|
@ -49,7 +49,7 @@ class RecipesView : ViewModel() {
|
||||||
|
|
||||||
val filters = filtersMap.map { it -> TagFilter(it.key, count = it.value) }.toList()
|
val filters = filtersMap.map { it -> TagFilter(it.key, count = it.value) }.toList()
|
||||||
|
|
||||||
_tagFilters.update { filters.distinct() }
|
_tagFilters.update { filters.distinct().sortedBy { it.tag } }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun removeRecipe(recipe: RecipeWithTags) {
|
fun removeRecipe(recipe: RecipeWithTags) {
|
||||||
|
|
|
||||||
|
|
@ -47,9 +47,9 @@ private fun AnnotatedString.Builder.visitMarkdownNode(
|
||||||
when (node) {
|
when (node) {
|
||||||
is Heading -> {
|
is Heading -> {
|
||||||
val style = when (node.level) {
|
val style = when (node.level) {
|
||||||
in 1..3 -> typography.titleLarge
|
in 1..2 -> typography.titleLarge
|
||||||
4 -> typography.titleMedium
|
3 -> typography.titleMedium
|
||||||
5 -> typography.bodySmall
|
4 -> typography.titleSmall
|
||||||
else -> typography.bodySmall
|
else -> typography.bodySmall
|
||||||
}
|
}
|
||||||
withStyle(
|
withStyle(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue