From 3a53a62f9c1c505366fe35ad745746d55d381dc8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 20 Feb 2025 20:12:24 -0800 Subject: feat: Development commit --- Sora/Views/BookmarksView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Sora/Views/BookmarksView.swift') 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) -- cgit v1.2.3