mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
2da51ee931
@ -29,9 +29,9 @@ const MetricCard = ({
|
|||||||
: !reverseColors
|
: !reverseColors
|
||||||
? styles.negative
|
? styles.negative
|
||||||
: styles.positive
|
: styles.positive
|
||||||
}`}
|
} ${change >= 0 ? styles.plusSign : ''}`}
|
||||||
>
|
>
|
||||||
{changeProps.x.interpolate(x => `${change >= 0 ? '+' : ''}${format(x)}`)}
|
{changeProps.x.interpolate(x => format(x))}
|
||||||
</animated.span>
|
</animated.span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,3 +37,7 @@
|
|||||||
.change.negative {
|
.change.negative {
|
||||||
color: var(--red500);
|
color: var(--red500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.change.plusSign::before {
|
||||||
|
content: '+';
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user