Browse Source
Task/harmonize unit styling in value component (#6832)
* Harmonize unit styling
* Update changelog
pull/1946/merge
Thomas Kaul
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
16 additions and
37 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/value/value.component.html
|
|
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
|
|
|
|
|
|
- Harmonized the unit styling in the value component |
|
|
- Upgraded `stripe` from version `20.4.1` to `21.0.1` |
|
|
- Upgraded `stripe` from version `20.4.1` to `21.0.1` |
|
|
|
|
|
|
|
|
## 3.1.0 - 2026-04-29 |
|
|
## 3.1.0 - 2026-04-29 |
|
|
|
|
|
@ -38,21 +38,6 @@ |
|
|
<div class="mr-1 text-danger">-</div> |
|
|
<div class="mr-1 text-danger">-</div> |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@if (isPercent) { |
|
|
|
|
|
<div |
|
|
|
|
|
class="mb-0 value" |
|
|
|
|
|
[ngClass]="{ |
|
|
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
|
|
h4: size === 'medium' |
|
|
|
|
|
}" |
|
|
|
|
|
> |
|
|
|
|
|
@if (value === null) { |
|
|
|
|
|
<span class="text-monospace text-muted">*****</span>% |
|
|
|
|
|
} @else { |
|
|
|
|
|
{{ formattedValue }}% |
|
|
|
|
|
} |
|
|
|
|
|
</div> |
|
|
|
|
|
} @else { |
|
|
|
|
|
<div |
|
|
<div |
|
|
class="mb-0 value" |
|
|
class="mb-0 value" |
|
|
[ngClass]="{ |
|
|
[ngClass]="{ |
|
|
@ -66,19 +51,12 @@ |
|
|
{{ formattedValue }} |
|
|
{{ formattedValue }} |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
} |
|
|
@if (isPercent || unit) { |
|
|
@if (unit) { |
|
|
|
|
|
@if (size === 'medium') { |
|
|
|
|
|
<small class="ml-1"> |
|
|
|
|
|
{{ unit }} |
|
|
|
|
|
</small> |
|
|
|
|
|
} @else { |
|
|
|
|
|
<div class="ml-1"> |
|
|
<div class="ml-1"> |
|
|
{{ unit }} |
|
|
{{ isPercent ? '%' : unit }} |
|
|
</div> |
|
|
</div> |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@if (isString) { |
|
|
@if (isString) { |
|
|
<div |
|
|
<div |
|
|
class="mb-0 text-truncate value" |
|
|
class="mb-0 text-truncate value" |
|
|
|