Skip to content

Commit

Permalink
Fix NotificationListCell padding and font size
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-u-0807 committed Jan 9, 2024
1 parent b4f7402 commit bd42a2c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions SNUTT-2022/SNUTT/Views/Components/NotificationListCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,24 @@ struct NotificationListCell: View {
.frame(width: 30, height: 30)

VStack(alignment: .leading, spacing: 0) {
Spacer().frame(height: 7)

HStack(alignment: .top) {
Text(notification.title)
.font(.system(size: 13, weight: .semibold))
.font(.system(size: 14, weight: .semibold))

Spacer()

Text(notification.dateString)
.font(.system(size: 13))
.font(.system(size: 14))
.foregroundColor(STColor.gray30)
}

Spacer().frame(height: 6)

Text(notification.message)
.font(.system(size: 13))

Spacer().frame(height: 7)
.font(.system(size: 14))
}
.padding(.vertical, 7)
.padding(.trailing, 2)
}
.padding(.vertical, 8)

Expand Down

0 comments on commit bd42a2c

Please sign in to comment.