mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-24 23:08:07 +00:00
Make notifications more compact
This commit is contained in:
parent
4730b9d396
commit
2a31fd7ef5
2 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue