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

This commit is contained in:
Bryce Johnson 2017-09-07 22:46:24 +00:00 committed by Clement Ho
parent 3955dcb4cc
commit 129e321781
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