mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
fix: mobile percentagecircle (#502)
This commit is contained in:
parent
3465f4c664
commit
1dd6e1d65c
@ -10,6 +10,7 @@ const PercentageCircle = ({
|
||||
styles,
|
||||
percentage,
|
||||
secondaryPieColor,
|
||||
...rest
|
||||
}: IPercentageCircleProps) => {
|
||||
const theme = useTheme();
|
||||
|
||||
@ -40,7 +41,7 @@ const PercentageCircle = ({
|
||||
);
|
||||
}
|
||||
|
||||
return <div style={{ ...circle, ...styles }} />;
|
||||
return <div style={{ ...circle, ...styles }} {...rest} />;
|
||||
};
|
||||
|
||||
export default PercentageCircle;
|
||||
|
@ -36,4 +36,9 @@ export const useStyles = makeStyles(theme => ({
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
[theme.breakpoints.down(400)]: {
|
||||
percentageCircle: {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
@ -48,7 +48,11 @@ const FeatureOverviewEnvironmentMetrics = ({
|
||||
the last hour.
|
||||
</p>
|
||||
</div>
|
||||
<PercentageCircle percentage={percentage} data-loading />
|
||||
<PercentageCircle
|
||||
className={styles.percentageCircle}
|
||||
percentage={percentage}
|
||||
data-loading
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user