diff --git a/app/assets/javascripts/shortcuts.js b/app/assets/javascripts/shortcuts.js index 09cb914e884855c2ba226cfc59b5e33e580adba6..a4a7f3fa9441f777e8f9d4667b3c57498e8682c1 100644 --- a/app/assets/javascripts/shortcuts.js +++ b/app/assets/javascripts/shortcuts.js @@ -58,10 +58,11 @@ import findAndFollowLink from './shortcuts_dashboard_navigation'; Shortcuts.prototype.onTogglePerfBar = function(e) { e.preventDefault(); - if (Cookies.get('perf_bar_enabled') === 'true') { - Cookies.remove('perf_bar_enabled', { path: '/' }); + const performanceBarCookieName = 'perf_bar_enabled'; + if (Cookies.get(performanceBarCookieName) === 'true') { + Cookies.remove(performanceBarCookieName, { path: '/' }); } else { - Cookies.set('perf_bar_enabled', true, { path: '/' }); + Cookies.set(performanceBarCookieName, true, { path: '/' }); } gl.utils.refreshCurrentPage(); }; diff --git a/vendor/assets/stylesheets/peek.scss b/vendor/assets/stylesheets/peek.scss index 3508f2e2450c872a8a7bd72938d0c6c5dd3de7d6..f1845fb9044e540b37a96c070501604690ef9818 100644 --- a/vendor/assets/stylesheets/peek.scss +++ b/vendor/assets/stylesheets/peek.scss @@ -6,12 +6,7 @@ header.navbar-gitlab.with-peek { } #peek { - position: fixed; - top: 0; - left: 0; - width: 100%; height: 35px; - z-index: 400; background: #000; line-height: 35px; color: #999;