Skip to content

Commit

Permalink
fix(equalizer): resize canvas and set min width
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jacquin committed Mar 31, 2019
1 parent 4bff6b9 commit 3b2a6f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/components/Equalizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ class Equalizer extends React.Component {

if (!_.isEqual(prevProps.dataViz, this.props.dataViz)) {
this.chartInstance.data.datasets[2].data = this.props.dataViz.map(b => b / 10 + (this.props.preAmp || 0));
// this.chartInstance.data.datasets[2].data[0] = 0;
// this.chartInstance.data.datasets[2].data[this.chartInstance.data.datasets[2].data.length - 1] = 0;
update = true;
}

Expand Down
4 changes: 4 additions & 0 deletions app/components/Equalizer/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
.chart_wrapper {
margin: auto;
width: 90%;
canvas {
width: 100% !important;
min-width: 442px;
}
}

.flexbox {
Expand Down

0 comments on commit 3b2a6f3

Please sign in to comment.