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 {
|
if status.card != nil && status.mediaAttachments.isEmpty && !hasQuote {
|
||||||
PostCardView(card: status.card!)
|
PostCardView(card: status.card!, imaging: self.imaging)
|
||||||
}
|
}
|
||||||
|
|
||||||
attachmnts
|
attachmnts
|
||||||
|
@ -172,7 +172,7 @@ struct CompactPostView: View {
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
||||||
ForEach(status.mediaAttachments) { attachment in
|
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)
|
.blur(radius: status.sensitive ? 15.0 : 0)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: attachment)
|
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: attachment)
|
||||||
|
@ -182,7 +182,7 @@ struct CompactPostView: View {
|
||||||
}
|
}
|
||||||
.scrollClipDisabled()
|
.scrollClipDisabled()
|
||||||
} else {
|
} else {
|
||||||
PostAttachment(attachment: status.mediaAttachments.first!, isImaging: imaging)
|
PostAttachment(attachment: status.mediaAttachments.first!, isImaging: self.imaging)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: status.mediaAttachments[0])
|
navigator.presentedCover = .media(attachments: status.mediaAttachments, selected: status.mediaAttachments[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ struct PostAttachment: View {
|
||||||
GeometryReader { _ in
|
GeometryReader { _ in
|
||||||
// Audio later because it's a lil harder
|
// Audio later because it's a lil harder
|
||||||
if let url = attachment.previewUrl {
|
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)
|
.frame(width: !isFeatured ? imageMaxHeight / 1.5 : newSize.width, height: !isFeatured ? imageMaxHeight: newSize.height)
|
||||||
|
|
Loading…
Reference in New Issue