diff options
| author | Fuwn <[email protected]> | 2025-02-27 04:18:24 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-27 04:18:24 -0800 |
| commit | 30074d99e2b73a63d349a52340d4c76df209bb99 (patch) | |
| tree | 59d6291bc79ff6dbe57b6f1b9a6ccb08e2c59b82 /Sora | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-30074d99e2b73a63d349a52340d4c76df209bb99.tar.xz sora-testing-30074d99e2b73a63d349a52340d4c76df209bb99.zip | |
feat: Development commit
Diffstat (limited to 'Sora')
| -rw-r--r-- | Sora/Views/Bookmarks/BookmarksListItemView.swift | 38 |
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 } } |