fix: Improve media inline appearance

This commit is contained in:
Marcus Kida 2022-11-15 15:44:51 +01:00
parent 4f88e74c69
commit eb26a4d6c3
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 5 additions and 1 deletions

View File

@ -222,13 +222,17 @@ extension ComposeContentView {
VStack(spacing: 16) { VStack(spacing: 16) {
ForEach(viewModel.attachmentViewModels, id: \.self) { attachmentViewModel in ForEach(viewModel.attachmentViewModels, id: \.self) { attachmentViewModel in
AttachmentView(viewModel: attachmentViewModel) AttachmentView(viewModel: attachmentViewModel)
.clipShape(Rectangle()) .clipShape(RoundedRectangle(cornerRadius: 4))
.badgeView( .badgeView(
Button { Button {
viewModel.attachmentViewModels.removeAll(where: { $0 === attachmentViewModel }) viewModel.attachmentViewModels.removeAll(where: { $0 === attachmentViewModel })
} label: { } label: {
Image(systemName: "minus.circle.fill") Image(systemName: "minus.circle.fill")
.resizable()
.frame(width: 20, height: 20)
.foregroundColor(.red) .foregroundColor(.red)
.background(Color.white)
.clipShape(Circle())
} }
) )
} // end ForEach } // end ForEach