matejos / JIRA - Wider Version Report dropdown

// ==UserScript==
// @name         JIRA - Wider Version Report dropdown
// @author       matejos
// @version      0.2
// @include      https://jira.*.com/secure/RapidBoard.jspa?*view=reporting*
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @license  MIT
// ==/UserScript==
function setMinWidth(){
    $('#ghx-chart-selector').css('min-width', '500px');
    $('#ghx-chart-picker-suggestions').css('min-width', '500px');
    $('#ghx-chart-picker-field').css('min-width', '500px');
    $('#ghx-chart-picker-form').css('min-width', '500px');
    $('#ghx-chart-picker-single-select').css('min-width', '500px');
    $('#ghx-items-trigger').css('min-width', '500px');
}
function tryToBind(){
    if ($('#ghx-chart-selector').is(':visible')) {
        $('#ghx-chart-selector').bind("DOMSubtreeModified", setMinWidth);
    }
    else {
        setTimeout(tryToBind, 1000);
    }
}
tryToBind();