moved magic number into variables
This commit is contained in:
parent
e05cd88300
commit
c70289a0a1
1 changed files with 2 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue