mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fixes #4512 - Make the preview item count label more proeminent
This commit is contained in:
committed by
Stefan Ceriu
parent
cf9df8a8e1
commit
b677efc9d2
+7
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user