Fix notifications layout

This commit is contained in:
Thomas Ricouard 2024-01-22 09:05:22 +01:00
parent a6ccdc029b
commit 9a8568d3fa
3 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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) {