Don't show count when it's 0

This commit is contained in:
Thomas Ricouard 2024-01-09 09:16:01 +01:00
parent c847de8f47
commit a4cdc6fc18

View file

@ -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)