Skip to content

Commit

Permalink
Limit max height
Browse files Browse the repository at this point in the history
  • Loading branch information
alpavanoglu committed Feb 20, 2024
1 parent 5fb77c9 commit b73fa55
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ fileprivate extension NotificationsTableViewCellContent {
}
}
.padding(.trailing, Length.Padding.double)
.frame(maxHeight: 60)
}

private var avatarHStack: some View {
Expand Down Expand Up @@ -114,13 +115,15 @@ fileprivate extension NotificationsTableViewCellContent {
Text(title)
.style(.bodySmall(.regular))
.foregroundStyle(Color.DS.Foreground.primary)
.layoutPriority(1)
.lineLimit(2)
}

if let description = info.description {
Text(description)
.style(.bodySmall(.regular))
.foregroundStyle(Color.DS.Foreground.secondary)
.layoutPriority(2)
.lineLimit(2)
.padding(.top, Length.Padding.half)
}
Expand Down

0 comments on commit b73fa55

Please sign in to comment.