diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 19:55:51 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-08-06 19:55:51 +0300 |
commit | 67fd6b86546a7aacddf1bcdbe50b25c54206b790 (patch) | |
tree | 379db54480f6b0c58ef3529a86acf0ddcd6ba238 /app/assets | |
parent | 2c6895d6b5ddfc1b383e8f2d5d971161a86baae5 (diff) |
Edit button to class.
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/repo/index.js | 3 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/repo.scss | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/repo/index.js b/app/assets/javascripts/repo/index.js index feba755af2d..67c03680fca 100644 --- a/app/assets/javascripts/repo/index.js +++ b/app/assets/javascripts/repo/index.js @@ -58,8 +58,7 @@ function initRepoEditButton(el) { function initRepoBundle() { const repo = document.getElementById('repo'); - const editButton = document.getElementById('editable-mode'); - + const editButton = document.querySelector('.editable-mode'); setInitialStore(repo.dataset); addEventsForNonVueEls(); initDropdowns(); diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss index a188c9cf4cb..4b6778af997 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/pages/repo.scss @@ -43,7 +43,7 @@ @include str-truncated(250px); } -#editable-mode { +.editable-mode { display: inline-block; } |