fix: Minor refactoring of styling

Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2024-04-06 08:55:14 +02:00
parent 1705be1db2
commit 0b9d63a025
@@ -171,10 +171,9 @@ export function Gauge(props: GaugeProps) {
<Box className={classes.description}>{description}</Box>
) : (
<Box
className={classNames(
classes.overlay,
size === 'small' ? classes.overlaySmall : undefined,
)}
className={classNames(classes.overlay, {
[classes.overlaySmall]: size === 'small',
})}
>
{isNaN(value) ? 'N/A' : `${asActual}${unit}`}
</Box>