From 9d7f23d55b4ae00ac12e4ff127a7176f32f49343 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sat, 16 Aug 2025 19:59:33 +1000 Subject: [PATCH] Showing smaller counter --- mobile/Heygo/Views/LinkListView.swift | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mobile/Heygo/Views/LinkListView.swift b/mobile/Heygo/Views/LinkListView.swift index d001522..d21d38b 100644 --- a/mobile/Heygo/Views/LinkListView.swift +++ b/mobile/Heygo/Views/LinkListView.swift @@ -56,6 +56,34 @@ struct LinkListView: View { .padding(.horizontal) .padding(.vertical, 8) + // Count indicator (shows filtered count and total) + if !linkViewModel.isLoading { + HStack(spacing: 6) { + let filtered = linkViewModel.filteredLinks.count + let total = linkViewModel.links.count + // Use monospace digits for subtle alignment + Text("\(filtered)") + .font(.caption) + .fontWeight(.semibold) + .padding(.horizontal, 6) + .padding(.vertical, 2) + .background(Color.secondary.opacity(0.15)) + .foregroundColor(.secondary) + .cornerRadius(4) + .accessibilityLabel("Filtered links count") + if filtered != total && total > 0 { + Text("of \(total)") + .font(.caption2) + .foregroundColor(.secondary) + .transition(.opacity) + } + Spacer() + } + .padding(.horizontal) + .padding(.bottom, 2) + .transition(.opacity) + } + // Links list if linkViewModel.isLoading { ProgressView()