summaryrefslogtreecommitdiff
path: root/Sora/Views/GenericItemView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-28 03:38:40 -0800
committerFuwn <[email protected]>2025-02-28 03:38:40 -0800
commitd2a472711b28ac5a05a66235f0e0f809130968e4 (patch)
treea96d6cf0c63d97f3da2ab2d27744d26ac988ecf1 /Sora/Views/GenericItemView.swift
parentfeat: Development commit (diff)
downloadsora-testing-d2a472711b28ac5a05a66235f0e0f809130968e4.tar.xz
sora-testing-d2a472711b28ac5a05a66235f0e0f809130968e4.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/GenericItemView.swift')
-rw-r--r--Sora/Views/GenericItemView.swift46
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
}
}