Skip to content

Commit

Permalink
fix: title not showing if it is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed Nov 7, 2023
1 parent 12c543f commit f3ce4d8
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,14 @@ internal fun LiveItem(
modifier = Modifier.padding(spacing.medium),
verticalArrangement = Arrangement.spacedBy(spacing.small)
) {
AnimatedVisibility(
visible = live.title.isNotEmpty()
) {
Text(
text = live.title,
style = MaterialTheme.typography.subtitle1,
fontSize = MaterialTheme.typography.subtitle1.fontSize,
overflow = TextOverflow.Ellipsis,
maxLines = 1,
fontWeight = FontWeight.Bold
)
}
Text(
text = live.title,
style = MaterialTheme.typography.subtitle1,
fontSize = MaterialTheme.typography.subtitle1.fontSize,
overflow = TextOverflow.Ellipsis,
maxLines = 1,
fontWeight = FontWeight.Bold
)
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(spacing.extraSmall)
Expand Down

0 comments on commit f3ce4d8

Please sign in to comment.