EventView: dont show pow if it's less than 10
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user