Browse Source

Bugfix/improve numeric comparison of strings in value component (#4330)

* Improve numeric comparison of strings

* Update changelog
pull/4352/head^2
Thomas Kaul 4 weeks ago
committed by GitHub
parent
commit
190abdf9cc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 4
      libs/ui/src/lib/value/value.component.html

4
CHANGELOG.md

@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `prettier` from version `3.4.2` to `3.5.1`
### Fixed
- Improved the numeric comparison of strings in the value component
## 2.140.0 - 2025-02-20
### Changed

4
libs/ui/src/lib/value/value.component.html

@ -10,8 +10,8 @@
>
<ng-container *ngIf="isNumber || value === null">
<ng-container *ngIf="colorizeSign && !useAbsoluteValue">
<div *ngIf="value > 0" class="mr-1 text-success">+</div>
<div *ngIf="value < 0" class="mr-1 text-danger">-</div>
<div *ngIf="+value > 0" class="mr-1 text-success">+</div>
<div *ngIf="+value < 0" class="mr-1 text-danger">-</div>
</ng-container>
<div
*ngIf="isPercent"

Loading…
Cancel
Save