Skip to content

Commit

Permalink
minor ui improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAmgd committed Aug 21, 2023
1 parent 67a5dce commit e7dd369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private fun ListItem(
modifier = Modifier
.align(Alignment.BottomCenter)
.padding(all = 12.dp),
text = deal.name,
text = deal.name.trim(),
style = MaterialTheme.typography.h3,
maxLines = 4,
overflow = TextOverflow.Ellipsis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private fun ListItem(
) {
var textSize: TextUnit by remember { mutableStateOf(18.sp) }
Text(
text = deal.name,
text = deal.name.trim(),
textAlign = TextAlign.Center,
style = MaterialTheme.typography.h2,
fontSize = textSize,
Expand Down

0 comments on commit e7dd369

Please sign in to comment.