mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2024-12-26 16:55:15 +01:00
Imaging issues
This commit is contained in:
parent
0f59f6023b
commit
c0b9eb4082
@ -133,7 +133,7 @@ struct CompactPostView: View {
|
||||
}
|
||||
|
||||
if status.card != nil && status.mediaAttachments.isEmpty && !hasQuote {
|
||||
PostCardView(card: status.card!)
|
||||
PostCardView(card: status.card!, imaging: self.imaging)
|
||||
}
|
||||
|
||||
attachmnts
|
||||
@ -172,7 +172,7 @@ struct CompactPostView: View {
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
||||
ForEach(status.mediaAttachments) { attachment in
|
||||
PostAttachment(attachment: attachment, isFeatured: false, isImaging: imaging)
|
||||
PostAttachment(attachment: attachment, isFeatured: false, isImaging: self.imaging)
|
||||
.blur(radius: status.sensitive ? 15.0 : 0)
|
||||
.onTapGesture {
|
||||
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: attachment)
|
||||
@ -182,7 +182,7 @@ struct CompactPostView: View {
|
||||
}
|
||||
.scrollClipDisabled()
|
||||
} else {
|
||||
PostAttachment(attachment: status.mediaAttachments.first!, isImaging: imaging)
|
||||
PostAttachment(attachment: status.mediaAttachments.first!, isImaging: self.imaging)
|
||||
.onTapGesture {
|
||||
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: status.mediaAttachments[0])
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ struct PostAttachment: View {
|
||||
GeometryReader { _ in
|
||||
// Audio later because it's a lil harder
|
||||
if let url = attachment.previewUrl {
|
||||
OnlineImage(url: url, size: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, priority: .veryHigh)
|
||||
OnlineImage(url: url, size: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, useNuke: self.isImaging)
|
||||
}
|
||||
}
|
||||
.frame(width: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, height: !isFeatured ? imageMaxHeight: newSize.height)
|
||||
|
Loading…
Reference in New Issue
Block a user