showsIndicator in a better place

This commit is contained in:
Lumaa 2024-01-04 23:37:06 +01:00
parent 951b60a846
commit 6894abb4bf
1 changed files with 1 additions and 2 deletions

View File

@ -143,14 +143,13 @@ struct CompactPostView: View {
if !status.mediaAttachments.isEmpty {
if status.mediaAttachments.count > 1 {
ScrollView(.horizontal) {
ScrollView(.horizontal, showsIndicators: false) {
HStack(alignment: .firstTextBaseline, spacing: 5) {
ForEach(status.mediaAttachments) { attachment in
PostAttachment(attachment: attachment)
}
}
}
.scrollIndicators(.hidden)
.scrollClipDisabled()
} else {
PostAttachment(attachment: status.mediaAttachments.first!)