Fix styling when text is used for metric tile

This commit is contained in:
Abász 2023-03-25 19:33:23 +01:00
parent 74a73c571a
commit c5bec08ea9
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export class DashboardMetric extends AppElement {
render () {
return html`
<div class="label">${this.icon}</div>
<div class="label"><div class="icon">${this.icon}</div></div>
<div class="content">
<span class="metric-value" style="${this.icon === '' ? 'font-size: 200%;' : ''}">${this.value !== undefined ? this.value : '--'}</span>
<span class="metric-unit">${this.unit}</span>