Browse Source

Harmonize unit styling

pull/6832/head
Thomas Kaul 3 weeks ago
parent
commit
4b137c86e3
  1. 52
      libs/ui/src/lib/value/value.component.html

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

@ -38,45 +38,23 @@
<div class="mr-1 text-danger">-</div> <div class="mr-1 text-danger">-</div>
} }
} }
@if (isPercent) { <div
<div class="mb-0 value"
class="mb-0 value" [ngClass]="{
[ngClass]="{ 'font-weight-bold h2': size === 'large',
'font-weight-bold h2': size === 'large', h4: size === 'medium'
h4: size === 'medium' }"
}" >
> @if (value === null) {
@if (value === null) { <span class="text-monospace text-muted">*****</span>
<span class="text-monospace text-muted">*****</span>%
} @else {
{{ formattedValue }}%
}
</div>
} @else {
<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>
}
@if (unit) {
@if (size === 'medium') {
<small class="ml-1">
{{ unit }}
</small>
} @else { } @else {
<div class="ml-1"> {{ formattedValue }}
{{ unit }}
</div>
} }
</div>
@if (isPercent || unit) {
<div class="ml-1">
{{ isPercent ? '%' : unit }}
</div>
} }
} }
@if (isString) { @if (isString) {

Loading…
Cancel
Save