summaryrefslogtreecommitdiff
path: root/Sora/Views/Bookmarks
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Bookmarks')
-rw-r--r--Sora/Views/Bookmarks/BookmarksListItemView.swift38
1 files changed, 19 insertions, 19 deletions
diff --git a/Sora/Views/Bookmarks/BookmarksListItemView.swift b/Sora/Views/Bookmarks/BookmarksListItemView.swift
index cfe267b..456992e 100644
--- a/Sora/Views/Bookmarks/BookmarksListItemView.swift
+++ b/Sora/Views/Bookmarks/BookmarksListItemView.swift
@@ -5,35 +5,35 @@ struct BookmarksListItemView: View {
var bookmark: Bookmark
var body: some View {
- VStack(alignment: .leading) {
+ #if os(macOS)
HStack {
- Text(bookmark.tags.joined(separator: ", "))
+ VStack(alignment: .leading) {
+ Text(bookmark.tags.joined(separator: ", "))
- #if os(macOS)
Spacer()
- Button {
- settings.removeBookmark(withID: bookmark.id)
- } label: {
- Image(systemName: "trash")
- }
- #endif
- }
-
- HStack {
- Text(bookmark.createdAt, style: .date)
- .font(.caption)
- .foregroundStyle(Color.secondary)
+ Text("On \(bookmark.createdAt.formatted()) from \(bookmark.provider.rawValue)")
+ .font(.caption)
+ .foregroundStyle(Color.secondary)
+ }
Spacer()
- Text(bookmark.provider.rawValue)
+ Button {
+ settings.removeBookmark(withID: bookmark.id)
+ } label: {
+ Image(systemName: "trash")
+ }
+ }
+ .padding()
+ #else
+ VStack(alignment: .leading) {
+ Text(bookmark.tags.joined(separator: ", "))
+
+ Text("On \(bookmark.createdAt.formatted()) from \(bookmark.provider.rawValue)")
.font(.caption)
.foregroundStyle(Color.secondary)
}
- }
- #if os(macOS)
- .padding()
#endif
}
}