mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-09 00:17:59 +00:00
refactor: rearrange text display logic in ContinueWatchingCard
This commit is contained in:
parent
a39c86222f
commit
6c736ce596
1 changed files with 32 additions and 34 deletions
|
|
@ -656,47 +656,45 @@ private fun ContinueWatchingCard(
|
|||
contentScale = ContentScale.Crop,
|
||||
)
|
||||
}
|
||||
if (!posterCardStyle.hideLabelsEnabled) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.align(Alignment.BottomStart)
|
||||
.padding(cardMetrics.contentPadding),
|
||||
verticalArrangement = Arrangement.spacedBy(cardMetrics.textGap),
|
||||
) {
|
||||
if (episodeCode != null) {
|
||||
Text(
|
||||
text = episodeCode,
|
||||
style = MaterialTheme.typography.labelMedium.copy(
|
||||
fontSize = cardMetrics.metaTextSize,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
),
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.align(Alignment.BottomStart)
|
||||
.padding(cardMetrics.contentPadding),
|
||||
verticalArrangement = Arrangement.spacedBy(cardMetrics.textGap),
|
||||
) {
|
||||
if (episodeCode != null) {
|
||||
Text(
|
||||
text = item.title,
|
||||
style = MaterialTheme.typography.titleSmall.copy(
|
||||
fontSize = cardMetrics.titleTextSize,
|
||||
text = episodeCode,
|
||||
style = MaterialTheme.typography.labelMedium.copy(
|
||||
fontSize = cardMetrics.metaTextSize,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
),
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
if (episodeTitle != null) {
|
||||
Text(
|
||||
text = episodeTitle,
|
||||
style = MaterialTheme.typography.bodySmall.copy(
|
||||
fontSize = cardMetrics.metaTextSize,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
color = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.72f),
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
}
|
||||
Text(
|
||||
text = item.title,
|
||||
style = MaterialTheme.typography.titleSmall.copy(
|
||||
fontSize = cardMetrics.titleTextSize,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
),
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
if (episodeTitle != null) {
|
||||
Text(
|
||||
text = episodeTitle,
|
||||
style = MaterialTheme.typography.bodySmall.copy(
|
||||
fontSize = cardMetrics.metaTextSize,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
color = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.72f),
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
}
|
||||
}
|
||||
Box(
|
||||
|
|
|
|||
Loading…
Reference in a new issue