mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 15:38:42 +01:00
fix(common-ui): markdown header size
This commit is contained in:
parent
053084f01e
commit
3c3ee8da95
@ -84,7 +84,8 @@ fun PostCard(
|
|||||||
)
|
)
|
||||||
Box {
|
Box {
|
||||||
PostCardBody(
|
PostCardBody(
|
||||||
modifier = Modifier.heightIn(max = 200.dp)
|
modifier = Modifier
|
||||||
|
.heightIn(max = 200.dp)
|
||||||
.padding(bottom = Spacing.xs),
|
.padding(bottom = Spacing.xs),
|
||||||
text = post.text,
|
text = post.text,
|
||||||
)
|
)
|
||||||
|
@ -27,12 +27,12 @@ fun PostCardBody(
|
|||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
content = text,
|
content = text,
|
||||||
typography = markdownTypography(
|
typography = markdownTypography(
|
||||||
h1 = MaterialTheme.typography.displayLarge,
|
h1 = MaterialTheme.typography.headlineLarge,
|
||||||
h2 = MaterialTheme.typography.displayMedium,
|
h2 = MaterialTheme.typography.headlineMedium,
|
||||||
h3 = MaterialTheme.typography.displaySmall,
|
h3 = MaterialTheme.typography.headlineSmall,
|
||||||
h4 = MaterialTheme.typography.headlineMedium,
|
h4 = MaterialTheme.typography.titleLarge,
|
||||||
h5 = MaterialTheme.typography.headlineSmall,
|
h5 = MaterialTheme.typography.titleMedium,
|
||||||
h6 = MaterialTheme.typography.titleLarge,
|
h6 = MaterialTheme.typography.titleSmall,
|
||||||
text = MaterialTheme.typography.bodyMedium,
|
text = MaterialTheme.typography.bodyMedium,
|
||||||
paragraph = MaterialTheme.typography.bodyMedium,
|
paragraph = MaterialTheme.typography.bodyMedium,
|
||||||
),
|
),
|
||||||
|
@ -26,7 +26,14 @@ fun PostCardTitle(
|
|||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
content = text,
|
content = text,
|
||||||
typography = markdownTypography(
|
typography = markdownTypography(
|
||||||
text = MaterialTheme.typography.displaySmall,
|
h1 = MaterialTheme.typography.headlineLarge,
|
||||||
|
h2 = MaterialTheme.typography.headlineMedium,
|
||||||
|
h3 = MaterialTheme.typography.headlineSmall,
|
||||||
|
h4 = MaterialTheme.typography.titleLarge,
|
||||||
|
h5 = MaterialTheme.typography.titleMedium,
|
||||||
|
h6 = MaterialTheme.typography.titleSmall,
|
||||||
|
text = MaterialTheme.typography.bodyMedium,
|
||||||
|
paragraph = MaterialTheme.typography.bodyMedium,
|
||||||
),
|
),
|
||||||
colors = markdownColor(
|
colors = markdownColor(
|
||||||
text = MaterialTheme.colorScheme.onSurfaceVariant,
|
text = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user