mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
Fixed bug in MetricCard: plus sign disappears on click.
This commit is contained in:
parent
0f976be5d8
commit
e91bfed6be
@ -29,9 +29,9 @@ const MetricCard = ({
|
||||
: !reverseColors
|
||||
? styles.negative
|
||||
: styles.positive
|
||||
}`}
|
||||
} ${change >= 0 ? styles.plusSign : ''}`}
|
||||
>
|
||||
{changeProps.x.interpolate(x => `${change >= 0 ? '+' : ''}${format(x)}`)}
|
||||
{changeProps.x.interpolate(x => format(x))}
|
||||
</animated.span>
|
||||
)}
|
||||
</div>
|
||||
|
@ -37,3 +37,7 @@
|
||||
.change.negative {
|
||||
color: var(--red500);
|
||||
}
|
||||
|
||||
.change.plusSign::before {
|
||||
content: '+';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user