mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-16 17:55:13 +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)
|
height: AvatarView.FrameConfig.status.height)
|
||||||
.accessibilityHidden(true)
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
makeMainLabel(type: notification.type)
|
makeMainLabel(type: notification.type)
|
||||||
// The main label is redundant for mentions
|
// The main label is redundant for mentions
|
||||||
.accessibilityHidden(notification.type == .mention)
|
.accessibilityHidden(notification.type == .mention)
|
||||||
|
|
|
@ -139,7 +139,7 @@ public struct NotificationsListView: View {
|
||||||
followRequests: account.followRequests)
|
followRequests: account.followRequests)
|
||||||
.listRowInsets(.init(top: 12,
|
.listRowInsets(.init(top: 12,
|
||||||
leading: .layoutPadding + 4,
|
leading: .layoutPadding + 4,
|
||||||
bottom: 12,
|
bottom: 0,
|
||||||
trailing: .layoutPadding))
|
trailing: .layoutPadding))
|
||||||
#if os(visionOS)
|
#if os(visionOS)
|
||||||
.listRowBackground(RoundedRectangle(cornerRadius: 8)
|
.listRowBackground(RoundedRectangle(cornerRadius: 8)
|
||||||
|
@ -168,7 +168,7 @@ public struct NotificationsListView: View {
|
||||||
followRequests: account.followRequests)
|
followRequests: account.followRequests)
|
||||||
.listRowInsets(.init(top: 12,
|
.listRowInsets(.init(top: 12,
|
||||||
leading: .layoutPadding + 4,
|
leading: .layoutPadding + 4,
|
||||||
bottom: 12,
|
bottom: 6,
|
||||||
trailing: .layoutPadding))
|
trailing: .layoutPadding))
|
||||||
#if os(visionOS)
|
#if os(visionOS)
|
||||||
.listRowBackground(RoundedRectangle(cornerRadius: 8)
|
.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 {
|
.onAppear {
|
||||||
if !reasons.contains(.placeholder) {
|
if !reasons.contains(.placeholder) {
|
||||||
|
|
Loading…
Reference in a new issue