EventView: dont show pow if it's less than 10

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-04-16 08:30:04 -07:00
parent cdbcf0f6e0
commit 698ddb31cc

View File

@@ -42,10 +42,12 @@ struct EventView: View {
}
.frame(maxWidth: .infinity, alignment: .leading)
Spacer()
if (event.pow ?? 0) >= 10 {
Text("\(event.pow ?? 0)")
.font(.callout)
.foregroundColor(calculate_pow_color(event.pow ?? 0))
}
}
Text(event.content)
.textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)