Merge branch '36638-select-project-to-create-issue-button-is-disconnected-from-dropdown-button' into 'master'

Normalize styles for empty-state group-level new issue/MR combo button

Closes #36638

See merge request !13647
This commit is contained in:
Clement Ho 2017-09-07 22:46:25 +00:00
commit e4c7fdf616
3 changed files with 24 additions and 6 deletions

View file

@ -288,11 +288,7 @@
display: flex;
max-width: 350px;
overflow: hidden;
@media(max-width: $screen-xs-max) {
width: 100%;
max-width: none;
}
float: right;
.new-project-item-link {
white-space: nowrap;
@ -305,6 +301,23 @@
}
}
.empty-state .project-item-select-holder.btn-group {
float: none;
display: inline-block;
.btn {
// overrides styles applied to plain `.empty-state .btn`
margin: 10px 0;
max-width: 300px;
width: auto;
@media(max-width: $screen-xs-max) {
max-width: 250px;
}
}
}
.new-project-item-select-button .fa-caret-down {
margin-left: 2px;
}

View file

@ -1,5 +1,5 @@
- if any_projects?(@projects)
.project-item-select-holder.btn-group.pull-right
.project-item-select-holder.btn-group
%a.btn.btn-new.new-project-item-link{ href: '', data: { label: local_assigns[:label], type: local_assigns[:type] } }
= icon('spinner spin')
= project_select_tag :project_path, class: "project-item-select", data: { include_groups: local_assigns[:include_groups], order_by: 'last_activity_at', relative_path: local_assigns[:path] }, with_feature_enabled: local_assigns[:with_feature_enabled]

View file

@ -0,0 +1,5 @@
---
title: Normalize styles for empty state combo button
merge_request:
author:
type: fixed