Browse Source

Bugfix/resolve styling issues by splitting space-separated class bindings (#6848)

* fix(ui): large size not working in value component

* fix(ui): historical market data style not applied
pull/6853/merge
Kenrick Tandrian 1 day ago
committed by GitHub
parent
commit
d720651f78
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 18
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html
  2. 14
      libs/ui/src/lib/value/value.component.html

18
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html

@ -6,14 +6,16 @@
@for (day of days; track day) { @for (day of days; track day) {
<div <div
class="day" class="day"
[class]="{ [class.available]="
'cursor-pointer valid': isDateOfInterest( marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice
`${itemByMonth.key}-${formatDay(day)}` "
), [class.cursor-pointer]="
available: isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice, "
today: isToday(`${itemByMonth.key}-${formatDay(day)}`) [class.today]="isToday(`${itemByMonth.key}-${formatDay(day)}`)"
}" [class.valid]="
isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
"
[title]=" [title]="
(`${itemByMonth.key}-${formatDay(day)}` (`${itemByMonth.key}-${formatDay(day)}`
| date: defaultDateFormat()) ?? '' | date: defaultDateFormat()) ?? ''

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

@ -40,10 +40,9 @@
} }
<div <div
class="mb-0 value" class="mb-0 value"
[class]="{ [class.font-weight-bold]="size === 'large'"
'font-weight-bold h2': size === 'large', [class.h2]="size === 'large'"
h4: size === 'medium' [class.h4]="size === 'medium'"
}"
> >
@if (value === null) { @if (value === null) {
<span class="text-monospace text-muted">*****</span> <span class="text-monospace text-muted">*****</span>
@ -60,10 +59,9 @@
@if (isString) { @if (isString) {
<div <div
class="mb-0 text-truncate value" class="mb-0 text-truncate value"
[class]="{ [class.font-weight-bold]="size === 'large'"
'font-weight-bold h2': size === 'large', [class.h2]="size === 'large'"
h4: size === 'medium' [class.h4]="size === 'medium'"
}"
> >
{{ formattedValue }} {{ formattedValue }}
</div> </div>

Loading…
Cancel
Save