Skip to content

Commit

Permalink
Use a different symbol other than _ for base unit (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes authored Jan 14, 2024
1 parent 772421c commit 5dcef67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ struct UnitInputView<UnitType>: View where UnitType: RawRepresentable & Hashable
Button(action: {
selectUnit(unitCase)
}) {
Text(unitCase.shouldRender ? unitCase.rawValue : "_")
Text(unitCase.shouldRender ? unitCase.rawValue : unitCases.count == 1 ? "" : "_")
.foregroundColor(Color.baseSecondaryRed.adjusted(brightness: 1.5))
.fontWeight(unitCase == unit ? .bold : .regular)
}
Expand Down

0 comments on commit 5dcef67

Please sign in to comment.