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)
.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()
}
}
@ -86,6 +96,7 @@ struct NotificationRowView: View {
StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: true))
} else {
StatusRowView(viewModel: .init(status: status, isCompact: true, showActions: false))
.lineLimit(4)
.foregroundColor(.gray)
}
Spacer()

View File

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