Compare commits

..

2 Commits

Author SHA1 Message Date
750a096999 add delete menu 2026-01-28 10:31:24 +01:00
d40c73399e add renovate 2026-01-28 10:31:18 +01:00
2 changed files with 12 additions and 0 deletions

View File

@@ -156,6 +156,15 @@ struct StopwatchListItem: View {
.padding(.vertical, 8) .padding(.vertical, 8)
.background(Color(UIColor.systemBackground)) .background(Color(UIColor.systemBackground))
.contentShape(Rectangle()) .contentShape(Rectangle())
.contextMenu {
Button(role: .destructive) {
withAnimation {
viewModel.deleteStopwatch(id: stopwatch.id)
}
} label: {
Label("Delete", systemImage: "trash")
}
}
.onDrag { .onDrag {
self.draggingStopwatch = stopwatch self.draggingStopwatch = stopwatch
return NSItemProvider(object: stopwatch.id.uuidString as NSString) return NSItemProvider(object: stopwatch.id.uuidString as NSString)

3
renovate.json Normal file
View File

@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}