Skip to content

Commit

Permalink
update header size so it decreases with a step every level
Browse files Browse the repository at this point in the history
  • Loading branch information
soupslurpr authored and thestinger committed Sep 6, 2024
1 parent f9e28c9 commit 9da623e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private fun ParseChildren(
localUriHandler.openUri(annotation.item)
}
},
style = typography.headlineMedium,
style = typography.titleLarge,
)
}

Expand Down Expand Up @@ -197,12 +197,12 @@ private fun ParseChildren(
}
},
modifier = if (likelyHeading) {
modifier.padding(top = 24.dp, bottom = 16.dp)
modifier.padding(top = 16.dp, bottom = 12.dp)
} else {
modifier.padding(top = 24.dp)
},
style = if (likelyHeading) {
typography.titleLarge
typography.titleMedium
} else {
style
},
Expand Down Expand Up @@ -324,12 +324,12 @@ private fun ParseChildren(
}
},
modifier = if (likelyHeading) {
modifier.padding(top = 24.dp, bottom = 16.dp)
modifier.padding(top = 16.dp, bottom = 12.dp)
} else {
modifier.padding(vertical = 16.dp)
},
style = if (likelyHeading) {
typography.titleLarge
typography.titleMedium
} else {
when (child.nodeName) {
"h1" -> style.copy(
Expand Down

0 comments on commit 9da623e

Please sign in to comment.