display attachment count
This commit is contained in:
parent
20ce67c098
commit
9503a4d4ab
|
@ -33,6 +33,14 @@ struct NotificationRow: View {
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundStyle(Color.gray)
|
.foregroundStyle(Color.gray)
|
||||||
.lineLimit(3, reservesSpace: true)
|
.lineLimit(3, reservesSpace: true)
|
||||||
|
|
||||||
|
if notif.status!.mediaAttachments.count > 0 {
|
||||||
|
Label("activity.status.attachments-\(notif.status!.mediaAttachments.count)", systemImage: "photo.on.rectangle.angled")
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
.font(.caption)
|
||||||
|
.foregroundStyle(Color.gray)
|
||||||
|
.lineLimit(1, reservesSpace: false)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TextEmoji(notif.account.note, emojis: notif.account.emojis)
|
TextEmoji(notif.account.note, emojis: notif.account.emojis)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
|
@ -77,7 +85,7 @@ struct NotificationRow: View {
|
||||||
case .mention:
|
case .mention:
|
||||||
return Color.blue
|
return Color.blue
|
||||||
case .reblog:
|
case .reblog:
|
||||||
return Color.pink
|
return Color.orange
|
||||||
case .status:
|
case .status:
|
||||||
return Color.yellow
|
return Color.yellow
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue