diff --git a/app/components/events-thumbnail/component.js b/app/components/events-thumbnail/component.js index 093b7501d..c080f599e 100644 --- a/app/components/events-thumbnail/component.js +++ b/app/components/events-thumbnail/component.js @@ -75,15 +75,5 @@ export default Component.extend({ // change bar width and spacing to keep the thumbnail responsive bars.attr('width', barWidth).attr('x', (build, idx) => barSpace * idx); }); - - d3.select(window).on(`resize.${this.pipelineId}`, function resize() { - [barSpace, barWidth, paddingLeft, paddingRight] = getParameters(svg); - - // change padding to the svg element so that it stays symmetrical - svg.style('padding', `0 ${paddingLeft} 0 ${paddingRight}`); - - // change bar width and spacing to keep the thumbnail responsive - bars.attr('width', barWidth).attr('x', (build, idx) => barSpace * idx); - }); } });