Add dynamic sizing for dropdown toggle, update Changelog.
Also resolve feedback.
This commit is contained in:
parent
f4eda673c5
commit
0bfef4bd83
3 changed files with 11 additions and 1 deletions
|
@ -57,6 +57,7 @@ v 8.11.0 (unreleased)
|
|||
- Trigram indexes for the "ci_runners" table have been removed to speed up UPDATE queries
|
||||
- Fix devise deprecation warnings.
|
||||
- Update version_sorter and use new interface for faster tag sorting
|
||||
- Load branches asynchronously in Cherry Pick and Revert dialogs.
|
||||
- Optimize checking if a user has read access to a list of issues !5370
|
||||
- Store all DB secrets in secrets.yml, under descriptive names !5274
|
||||
- Nokogiri's various parsing methods are now instrumented
|
||||
|
|
|
@ -84,6 +84,15 @@
|
|||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Allows dynamic-width text in the dropdown toggle.
|
||||
// Resizes to allow long text without overflowing the container.
|
||||
&.dynamic {
|
||||
width: auto;
|
||||
min-width: 160px;
|
||||
max-width: 100%;
|
||||
padding-right: 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu,
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
= label_tag 'target_branch', target_label, class: 'control-label'
|
||||
.col-sm-10
|
||||
= hidden_field_tag :target_branch, @project.default_branch, id: 'target_branch'
|
||||
= dropdown_tag(@project.default_branch, options: { title: "Switch branch", filter: true, placeholder: "Search branches", toggle_class: 'js-project-refs-dropdown js-target-branch', dropdown_class: 'dropdown-menu-selectable', data: { field_name: "target_branch", selected: @project.default_branch, target_branch: @project.default_branch, refs_url: namespace_project_branches_path(@project.namespace, @project), submit_form_on_click: false }})
|
||||
= dropdown_tag(@project.default_branch, options: { title: "Switch branch", filter: true, placeholder: "Search branches", toggle_class: 'js-project-refs-dropdown js-target-branch dynamic', dropdown_class: 'dropdown-menu-selectable', data: { field_name: "target_branch", selected: @project.default_branch, target_branch: @project.default_branch, refs_url: namespace_project_branches_path(@project.namespace, @project), submit_form_on_click: false }})
|
||||
|
||||
- if can?(current_user, :push_code, @project)
|
||||
.js-create-merge-request-container
|
||||
|
|
Loading…
Reference in a new issue