Made h3 tags smaller and sorted tag filters by name

master
Wynd 2025-09-29 01:06:25 +03:00
parent f45cb17009
commit 3badc4889b
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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(