Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Update workout history item layout
Browse files Browse the repository at this point in the history
Use secondaryText instead of trailing for date. Allow for up to 2 lines
instead of 1. Related to #64
  • Loading branch information
noahjutz committed Mar 26, 2021
1 parent b12d69a commit 6d0aa3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ fun WorkoutHistory(
Text(
text = workout.name.takeIf { it.isNotBlank() }
?: stringResource(R.string.unnamed_workout),
maxLines = 1,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
)
},
trailing = {
secondaryText = {
val day = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault())
.format(workout.startTime)
Text(day)
Expand Down

0 comments on commit 6d0aa3a

Please sign in to comment.