diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-11-30 11:56:32 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-11-30 11:56:32 +0300 |
commit | f2cd91dd72ca1b09047347893097675ddd72d7b9 (patch) | |
tree | 19e7ed78a2a0bf9882a4c2c7036ff4efcee315ca /app/assets | |
parent | c923f96dc7ad4604d8162d96a5bcde44a776032b (diff) | |
parent | 349e3622f92cc4c6ea51ecaac76ef7c4ea8999e3 (diff) |
Merge branch '39455-clone-dropdown-should-not-have-a-tooltip' into 'master'
Resolve "Clone dropdown should not have a tooltip"
Closes #39455
See merge request gitlab-org/gitlab-ce!15334
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/project.js | 3 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/projects.scss | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/javascripts/project.js b/app/assets/javascripts/project.js index 36b6a5ed376..3131e71d9d6 100644 --- a/app/assets/javascripts/project.js +++ b/app/assets/javascripts/project.js @@ -17,13 +17,14 @@ export default class Project { $('a', $cloneOptions).on('click', (e) => { const $this = $(e.currentTarget); const url = $this.attr('href'); + const activeText = $this.find('.dropdown-menu-inner-title').text(); e.preventDefault(); $('.is-active', $cloneOptions).not($this).removeClass('is-active'); $this.toggleClass('is-active'); $projectCloneField.val(url); - $cloneBtnText.text($this.text()); + $cloneBtnText.text(activeText); return $('.clone').text(url); }); diff --git a/app/assets/stylesheets/pages/projects.scss b/app/assets/stylesheets/pages/projects.scss index 2c83b30500d..2dc0c288a6d 100644 --- a/app/assets/stylesheets/pages/projects.scss +++ b/app/assets/stylesheets/pages/projects.scss @@ -395,6 +395,18 @@ } } } + + .clone-dropdown-btn { + background-color: $white-light; + } + + .clone-options-dropdown { + min-width: 240px; + + .dropdown-menu-inner-content { + min-width: 320px; + } + } } .project-repo-buttons { |