diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-10-04 17:53:03 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-10-04 17:53:03 +0300 |
commit | 94d887485a00b15657478619324e4cdc39c5c251 (patch) | |
tree | a590050400c230c5a757750192bd1b90cd6f3dba | |
parent | 20408363eee3cea89b18e6d343a2ee12fb7158a6 (diff) | |
download | gitlab-ce-94d887485a00b15657478619324e4cdc39c5c251.tar.gz |
Tweak issuable dropdowns to open above the dropdown.
-rw-r--r-- | app/assets/stylesheets/pages/issuable.scss | 28 | ||||
-rw-r--r-- | app/views/shared/issuable/_milestone_dropdown.html.haml | 2 |
2 files changed, 29 insertions, 1 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss index 41079b6eeb5..1a5cb4facc3 100644 --- a/app/assets/stylesheets/pages/issuable.scss +++ b/app/assets/stylesheets/pages/issuable.scss @@ -419,3 +419,31 @@ } } } + +.issue-form { + + .dropdown-menu-labels { + top: -391px; + + &.is-loading { + top: -166px; + } + } + + .dropdown-menu-milestone { + top: -310px; + + &.is-loading { + top: -166px; + } + } + + .dropdown-menu-assignee { + top: -315px; + + &.is-loading { + top: -101px; + } + } + +} diff --git a/app/views/shared/issuable/_milestone_dropdown.html.haml b/app/views/shared/issuable/_milestone_dropdown.html.haml index ab537dc0ed7..7458afdaa58 100644 --- a/app/views/shared/issuable/_milestone_dropdown.html.haml +++ b/app/views/shared/issuable/_milestone_dropdown.html.haml @@ -3,7 +3,7 @@ - selected_text = selected.try(:title) - if selected.present? = hidden_field_tag(name, name == :milestone_title ? selected.title : selected.id) -= dropdown_tag(milestone_dropdown_label(selected_text), options: { title: "Filter by milestone", toggle_class: "js-milestone-select js-filter-submit #{extra_class}", filter: true, dropdown_class: "dropdown-menu-selectable", += dropdown_tag(milestone_dropdown_label(selected_text), options: { title: "Filter by milestone", toggle_class: "js-milestone-select js-filter-submit #{extra_class}", filter: true, dropdown_class: "dropdown-menu-selectable dropdown-menu-milestone", placeholder: "Search milestones", footer_content: project.present?, data: { show_no: true, show_any: show_any, show_upcoming: show_upcoming, field_name: name, selected: selected.try(:title), project_id: project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do - if project %ul.dropdown-footer-list |