Compare commits
2 Commits
f88bf552af
...
2ee34acbad
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 2ee34acbad | |
Shadowfacts | 6eee97759e |
|
@ -37,9 +37,9 @@ struct ComposeAttachmentRow: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button(action: self.removeAttachment) {
|
Button(role: .destructive, action: self.removeAttachment) {
|
||||||
Label("Delete", systemImage: "trash")
|
Label("Delete", systemImage: "trash")
|
||||||
}.foregroundStyle(.red)
|
}
|
||||||
} previewIfAvailable: {
|
} previewIfAvailable: {
|
||||||
ComposeAttachmentImage(attachment: attachment, fullSize: true)
|
ComposeAttachmentImage(attachment: attachment, fullSize: true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,13 @@ struct PinnedTimelinesView: View {
|
||||||
.foregroundColor(Color(.lightGray))
|
.foregroundColor(Color(.lightGray))
|
||||||
.accessibilityHidden(true)
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
|
.contextMenu {
|
||||||
|
Button(role: .destructive) {
|
||||||
|
pinnedTimelines.removeAll(where: { $0.id == timeline.id })
|
||||||
|
} label: {
|
||||||
|
Label("Remove Pinned Timeline", systemImage: "trash")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.onMove { indices, newOffset in
|
.onMove { indices, newOffset in
|
||||||
pinnedTimelines.move(fromOffsets: indices, toOffset: newOffset)
|
pinnedTimelines.move(fromOffsets: indices, toOffset: newOffset)
|
||||||
|
|
Loading…
Reference in New Issue