diff options
Diffstat (limited to 'Sora/Views/BookmarksView.swift')
| -rw-r--r-- | Sora/Views/BookmarksView.swift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/BookmarksView.swift index d1c5776..5d27b6a 100644 --- a/Sora/Views/BookmarksView.swift +++ b/Sora/Views/BookmarksView.swift @@ -34,17 +34,20 @@ struct BookmarksView: View { ForEach(filteredBookmarks, id: \.self) { bookmark in Button(action: { + settings.preferredBooru = bookmark.provider manager.searchText = bookmark.tags.joined(separator: " ") - manager.performSearch() selectedTab = 0 }) { + let badgeView = Text(bookmark.provider.rawValue.capitalized) + HStack { Text(bookmark.tags.joined(separator: ", ")) + .foregroundStyle(.primary) Text(bookmark.createdAt.formatted()) .foregroundColor(.secondary) - .font(.caption) } + .badge(badgeView) } } .onDelete(perform: settings.removeBookmark) |