Skip to content

Commit

Permalink
(android) Prevent contact info wrapping in history
Browse files Browse the repository at this point in the history
  • Loading branch information
dpad85 committed Jul 3, 2024
1 parent 2a11f61 commit feaef8a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ fun PaymentLine(
Text(text = stringResource(id = R.string.paymentline_outgoing_unconfirmed), style = MaterialTheme.typography.caption.copy(fontSize = 12.sp))
} else {
Row {
Text(text = payment.createdAt.toRelativeDateString(), style = MaterialTheme.typography.caption.copy(fontSize = 12.sp))
Text(text = payment.createdAt.toRelativeDateString(), style = MaterialTheme.typography.caption.copy(fontSize = 12.sp), maxLines = 1)
PaymentContactInfo(paymentInfo = paymentInfo)
}
}
Expand Down Expand Up @@ -334,6 +334,8 @@ private fun FromToNameView(isOutgoing: Boolean, userName: String) {
Spacer(modifier = Modifier.width(4.dp))
Text(
text = if (isOutgoing) stringResource(id = R.string.paymentdetails_desc_to, userName) else stringResource(id = R.string.paymentdetails_desc_from, userName),
style = MaterialTheme.typography.subtitle2.copy(fontSize = 12.sp)
style = MaterialTheme.typography.subtitle2.copy(fontSize = 12.sp),
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
}

0 comments on commit feaef8a

Please sign in to comment.