Skip to content

Commit

Permalink
fix(Meter): meter series count over 4 to have same max limit as 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jfiala-cz committed May 6, 2024
1 parent 50f2071 commit c27f04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Meter.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class Meter extends Component {
[`${CLASS_ROOT}--vertical`]: vertical,
[`${CLASS_ROOT}--loading`]: series.length === 0,
[`${CLASS_ROOT}--single`]: series.length === 1,
[`${CLASS_ROOT}--count-${series.length}`]: series.length > 1,
[`${CLASS_ROOT}--count-${Math.min(series.length, 4)}`]: series.length > 1,
[`${CLASS_ROOT}--${responsiveSize}`]: responsiveSize,
[`${CLASS_ROOT}--active`]: active
},
Expand Down

0 comments on commit c27f04d

Please sign in to comment.