From 30074d99e2b73a63d349a52340d4c76df209bb99 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 27 Feb 2025 04:18:24 -0800 Subject: feat: Development commit --- Sora/Views/Bookmarks/BookmarksListItemView.swift | 38 ++++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'Sora/Views/Bookmarks/BookmarksListItemView.swift') 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 } } -- cgit v1.2.3