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 24 hours 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) {
<div
class="day"
[class]="{
'cursor-pointer valid': isDateOfInterest(
`${itemByMonth.key}-${formatDay(day)}`
),
available:
marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice,
today: isToday(`${itemByMonth.key}-${formatDay(day)}`)
}"
[class.available]="
marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice
"
[class.cursor-pointer]="
isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
"
[class.today]="isToday(`${itemByMonth.key}-${formatDay(day)}`)"
[class.valid]="
isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
"
[title]="
(`${itemByMonth.key}-${formatDay(day)}`
| date: defaultDateFormat()) ?? ''

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

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

Loading…
Cancel
Save