From d2a472711b28ac5a05a66235f0e0f809130968e4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 28 Feb 2025 03:38:40 -0800 Subject: feat: Development commit --- Sora/Views/GenericItemView.swift | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'Sora/Views/GenericItemView.swift') 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: 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 } } -- cgit v1.2.3