Fix action button counter glitch in most scenarios (#1009)
Adds monospacedDigit modifier to the counter next to action button counter labels. This fixes the layout glitch that happens when the counter changes, most noticeably when you tap the boost or favorite button except for when the counter gains or loses a digit (9 -> 10, 99 -> 100 etc…) Still greatly improves the actions view experience though. Co-authored-by: Pascal Batty <pascal@zen.ly>
This commit is contained in:
parent
482d93a68d
commit
f1a1905098
|
@ -121,6 +121,7 @@ struct StatusRowActionsView: View {
|
|||
Text("\(count)")
|
||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||
.font(.scaledFootnote)
|
||||
.monospacedDigit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue