mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
UI fix for notifications list view
This commit is contained in:
parent
f968a4b652
commit
fd6f337571
1 changed files with 8 additions and 7 deletions
|
@ -17,13 +17,10 @@ public struct NotificationsListView: View {
|
|||
public var body: some View {
|
||||
ScrollView {
|
||||
LazyVStack {
|
||||
Group {
|
||||
notificationsView
|
||||
}
|
||||
.padding(.top, 16)
|
||||
.frame(maxWidth: .maxColumnWidth)
|
||||
}
|
||||
.padding(.top, .layoutPadding)
|
||||
.padding(.top, .layoutPadding + 16)
|
||||
.background(theme.primaryBackgroundColor)
|
||||
}
|
||||
.navigationTitle(viewModel.selectedType?.menuTitle() ?? "All Notifications")
|
||||
|
@ -78,8 +75,10 @@ public struct NotificationsListView: View {
|
|||
ForEach(Models.Notification.placeholders()) { notification in
|
||||
NotificationRowView(notification: notification)
|
||||
.redacted(reason: .placeholder)
|
||||
.padding(.leading, .layoutPadding + 6)
|
||||
.padding(.leading, .layoutPadding + 4)
|
||||
.padding(.trailing, .layoutPadding)
|
||||
.padding(.top, 6)
|
||||
.padding(.bottom, 2)
|
||||
.shimmering()
|
||||
Divider()
|
||||
.padding(.vertical, .dividerPadding)
|
||||
|
@ -94,8 +93,10 @@ public struct NotificationsListView: View {
|
|||
ForEach(notifications) { notification in
|
||||
if notification.supportedType != nil {
|
||||
NotificationRowView(notification: notification)
|
||||
.padding(.leading, .layoutPadding + 6)
|
||||
.padding(.leading, .layoutPadding + 4)
|
||||
.padding(.trailing, .layoutPadding)
|
||||
.padding(.top, 6)
|
||||
.padding(.bottom, 2)
|
||||
Divider()
|
||||
.padding(.vertical, .dividerPadding)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue