2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Layout tweaks and temporary dark mode improvements

Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
This commit is contained in:
shannon 2025-02-07 14:57:53 -05:00
parent bfecb30b11
commit 7d2e8a1db9
3 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,8 @@ import SwiftUI
struct InlinePostPreview: View {
let viewModel: Mastodon.Entity.Status.ViewModel
@Environment(\.colorScheme) private var colorScheme
var body: some View {
VStack(alignment: .leading) {
@ -24,7 +26,7 @@ struct InlinePostPreview: View {
.frame(maxWidth: .infinity)
.background {
RoundedRectangle(cornerRadius: 8)
.fill(.clear)
.fill(colorScheme == .dark ? AnyShapeStyle(.separator) : AnyShapeStyle(.clear))
.stroke(.separator)
}
}

View File

@ -89,6 +89,8 @@ struct NotificationListView: View {
} label: {
}
.pickerStyle(.segmented)
.padding(.horizontal)
.fixedSize()
Spacer()
}

View File

@ -508,6 +508,9 @@ struct NotificationRowView: View {
image.resizable()
.aspectRatio(contentMode: .fit)
.clipShape(avatarShape)
.overlay {
avatarShape.stroke(.separator)
}
},
placeholder: {
avatarShape
@ -539,6 +542,7 @@ struct NotificationRowView: View {
viewModel.doAvatarRowButtonAction()
}
.buttonStyle(.borderedProminent)
.foregroundStyle(.background)
.controlSize(.small)
.bold()
case (.requestButton, false):