Add minLines to comfortable grid item title (#9122)
This commit is contained in:
parent
60a3ba5a5c
commit
bd7b21337c
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,7 @@ private fun BoxScope.CoverTextOverlay(
|
||||||
blurRadius = 4f,
|
blurRadius = 4f,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
minLines = 1,
|
||||||
)
|
)
|
||||||
if (onClickContinueReading != null) {
|
if (onClickContinueReading != null) {
|
||||||
ContinueReadingButton(
|
ContinueReadingButton(
|
||||||
|
@ -204,6 +205,7 @@ fun MangaComfortableGridItem(
|
||||||
modifier = Modifier.padding(4.dp),
|
modifier = Modifier.padding(4.dp),
|
||||||
title = title,
|
title = title,
|
||||||
style = MaterialTheme.typography.titleSmall,
|
style = MaterialTheme.typography.titleSmall,
|
||||||
|
minLines = 2,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -252,12 +254,14 @@ private fun GridItemTitle(
|
||||||
modifier: Modifier,
|
modifier: Modifier,
|
||||||
title: String,
|
title: String,
|
||||||
style: TextStyle,
|
style: TextStyle,
|
||||||
|
minLines: Int,
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
text = title,
|
text = title,
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
lineHeight = 18.sp,
|
lineHeight = 18.sp,
|
||||||
|
minLines = minLines,
|
||||||
maxLines = 2,
|
maxLines = 2,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
style = style,
|
style = style,
|
||||||
|
|
Reference in a new issue