diff options
| author | Fuwn <[email protected]> | 2025-02-28 03:38:40 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-28 03:38:40 -0800 |
| commit | d2a472711b28ac5a05a66235f0e0f809130968e4 (patch) | |
| tree | a96d6cf0c63d97f3da2ab2d27744d26ac988ecf1 /Sora/Views/GenericItemView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-d2a472711b28ac5a05a66235f0e0f809130968e4.tar.xz sora-testing-d2a472711b28ac5a05a66235f0e0f809130968e4.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/GenericItemView.swift')
| -rw-r--r-- | Sora/Views/GenericItemView.swift | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/Sora/Views/GenericItemView.swift b/Sora/Views/GenericItemView.swift index f2d70cb..34ce88a 100644 --- a/Sora/Views/GenericItemView.swift +++ b/Sora/Views/GenericItemView.swift @@ -6,35 +6,35 @@ struct GenericItemView<T: ItemViewModel>: View { let removeAction: (UUID) -> Void var body: some View { -#if os(macOS) - HStack { - VStack(alignment: .leading) { - Text(item.tags.joined(separator: ", ").lowercased()) + #if os(macOS) + HStack { + VStack(alignment: .leading) { + Text(item.tags.joined(separator: ", ").lowercased()) + + Spacer() + + Text("On \(item.date.formatted()) from \(item.provider.rawValue)") + .font(.caption) + .foregroundStyle(Color.secondary) + } Spacer() + Button { + removeAction(item.id) + } label: { + Image(systemName: "trash") + } + } + .padding() + #else + VStack(alignment: .leading) { + Text(item.tags.joined(separator: ", ").lowercased()) + Text("On \(item.date.formatted()) from \(item.provider.rawValue)") .font(.caption) .foregroundStyle(Color.secondary) } - - Spacer() - - Button { - removeAction(item.id) - } label: { - Image(systemName: "trash") - } - } - .padding() -#else - VStack(alignment: .leading) { - Text(item.tags.joined(separator: ", ").lowercased()) - - Text("On \(item.date.formatted()) from \(item.provider.rawValue)") - .font(.caption) - .foregroundStyle(Color.secondary) - } -#endif + #endif } } |