Make notifications more compact

This commit is contained in:
Thomas Ricouard 2023-01-21 15:16:52 +01:00
parent 4730b9d396
commit 2a31fd7ef5
2 changed files with 12 additions and 1 deletions

View file

@ -69,6 +69,16 @@ struct NotificationRowView: View {
}) })
.font(.scaledSubheadline) .font(.scaledSubheadline)
.fontWeight(.semibold) .fontWeight(.semibold)
.lineLimit(1)
if let status = notification.status, notification.supportedType == .mention {
Group {
Text("")
Text(Image(systemName: status.visibility.iconName))
}
.font(.scaledFootnote)
.fontWeight(.regular)
.foregroundColor(.gray)
}
Spacer() Spacer()
} }
} }
@ -86,6 +96,7 @@ struct NotificationRowView: View {
StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: true)) StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: true))
} else { } else {
StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: false)) StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: false))
.lineLimit(4)
.foregroundColor(.gray) .foregroundColor(.gray)
} }
Spacer() Spacer()

View file

@ -7,7 +7,7 @@ extension Models.Notification.NotificationType {
case .status: case .status:
return "notifications.label.status" return "notifications.label.status"
case .mention: case .mention:
return "notifications.label.mention" return ""
case .reblog: case .reblog:
return "notifications.label.reblog" return "notifications.label.reblog"
case .follow: case .follow: