mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
Fix notifications layout
This commit is contained in:
parent
a6ccdc029b
commit
9a8568d3fa
3 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ struct NotificationRowView: View {
|
|||
height: AvatarView.FrameConfig.status.height)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
makeMainLabel(type: notification.type)
|
||||
// The main label is redundant for mentions
|
||||
.accessibilityHidden(notification.type == .mention)
|
||||
|
|
|
@ -139,7 +139,7 @@ public struct NotificationsListView: View {
|
|||
followRequests: account.followRequests)
|
||||
.listRowInsets(.init(top: 12,
|
||||
leading: .layoutPadding + 4,
|
||||
bottom: 12,
|
||||
bottom: 0,
|
||||
trailing: .layoutPadding))
|
||||
#if os(visionOS)
|
||||
.listRowBackground(RoundedRectangle(cornerRadius: 8)
|
||||
|
@ -168,7 +168,7 @@ public struct NotificationsListView: View {
|
|||
followRequests: account.followRequests)
|
||||
.listRowInsets(.init(top: 12,
|
||||
leading: .layoutPadding + 4,
|
||||
bottom: 12,
|
||||
bottom: 6,
|
||||
trailing: .layoutPadding))
|
||||
#if os(visionOS)
|
||||
.listRowBackground(RoundedRectangle(cornerRadius: 8)
|
||||
|
|
|
@ -107,7 +107,7 @@ public struct StatusRowView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.padding(.init(top: 12, leading: 0, bottom: isFocused ? 12 : 6, trailing: 0))
|
||||
.padding(.init(top: isCompact ? 6 : 12, leading: 0, bottom: isFocused ? 12 : 6, trailing: 0))
|
||||
}
|
||||
.onAppear {
|
||||
if !reasons.contains(.placeholder) {
|
||||
|
|
Loading…
Reference in a new issue