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()
|
||||
|
||||
_tagFilters.update { filters.distinct() }
|
||||
_tagFilters.update { filters.distinct().sortedBy { it.tag } }
|
||||
}
|
||||
|
||||
fun removeRecipe(recipe: RecipeWithTags) {
|
||||
|
|
|
|||
|
|
@ -47,9 +47,9 @@ private fun AnnotatedString.Builder.visitMarkdownNode(
|
|||
when (node) {
|
||||
is Heading -> {
|
||||
val style = when (node.level) {
|
||||
in 1..3 -> typography.titleLarge
|
||||
4 -> typography.titleMedium
|
||||
5 -> typography.bodySmall
|
||||
in 1..2 -> typography.titleLarge
|
||||
3 -> typography.titleMedium
|
||||
4 -> typography.titleSmall
|
||||
else -> typography.bodySmall
|
||||
}
|
||||
withStyle(
|
||||
|
|
|
|||
Loading…
Reference in New Issue