Fixes #4512 - Make the preview item count label more proeminent

This commit is contained in:
Stefan Ceriu
2025-09-16 13:30:42 +03:00
committed by Stefan Ceriu
parent cf9df8a8e1
commit b677efc9d2
3 changed files with 18 additions and 3 deletions
@@ -29,9 +29,13 @@ struct MediaUploadPreviewScreen: View {
.ignoresSafeArea(edges: [.horizontal])
.safeAreaInset(edge: .top) {
if context.viewState.mediaURLs.count > 1 {
Text("\(currentIndex + 1) / \(context.viewState.mediaURLs.count)")
.font(.compound.bodySM)
.foregroundColor(.compound.textSecondary)
Text(L10n.screenMediaUploadPreviewItemCount(currentIndex + 1, context.viewState.mediaURLs.count))
.font(.compound.bodyMD)
.foregroundColor(.compound.textPrimary)
.padding(.vertical, 4)
.padding(.horizontal, 8)
.background(.compound.bgBadgeDefault)
.clipShape(.capsule)
}
}
.safeAreaInset(edge: .bottom, spacing: 0) {