Normalize styles for empty-state group-level new issue/MR combo button
This commit is contained in:
parent
3955dcb4cc
commit
129e321781
|
@ -288,11 +288,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
float: right;
|
||||||
@media(max-width: $screen-xs-max) {
|
|
||||||
width: 100%;
|
|
||||||
max-width: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.new-project-item-link {
|
.new-project-item-link {
|
||||||
white-space: nowrap;
|
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 {
|
.new-project-item-select-button .fa-caret-down {
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- if any_projects?(@projects)
|
- 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] } }
|
%a.btn.btn-new.new-project-item-link{ href: '', data: { label: local_assigns[:label], type: local_assigns[:type] } }
|
||||||
= icon('spinner spin')
|
= 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]
|
= 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]
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Normalize styles for empty state combo button
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in New Issue