moved magic number into variables

This commit is contained in:
Phil Hughes 2017-11-17 10:53:14 +00:00
parent e05cd88300
commit c70289a0a1
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -340,7 +340,8 @@ import ProjectVariables from './project_variables';
container: '.js-commit-pipeline-graph',
}).bindEvents();
initNotes();
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - 16);
const stickyBarPaddingTop = 16;
initChangesDropdown(document.querySelector('.navbar-gitlab').offsetHeight - stickyBarPaddingTop);
$('.commit-info.branches').load(document.querySelector('.js-commit-box').dataset.commitPath);
break;
case 'projects:commit:pipelines':