mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 23:50:36 +00:00
Don't show count when it's 0
This commit is contained in:
parent
c847de8f47
commit
a4cdc6fc18
1 changed files with 4 additions and 1 deletions
|
@ -213,9 +213,12 @@ struct StatusRowActionsView: View {
|
|||
if !isNarrow,
|
||||
let count = action.count(dataController: statusDataController,
|
||||
isFocused: isFocused,
|
||||
theme: theme), !viewModel.isRemote
|
||||
theme: theme), !viewModel.isRemote,
|
||||
count > 0
|
||||
{
|
||||
Text(count, format: .number.notation(.compactName))
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.6)
|
||||
.contentTransition(.numericText(value: Double(count)))
|
||||
.foregroundColor(Color(UIColor.secondaryLabel))
|
||||
.font(.scaledFootnote)
|
||||
|
|
Loading…
Reference in a new issue