Skip to content

Commit

Permalink
Fix ad-hoc page css for new Patternfly version
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Mar 29, 2017
1 parent 03570b1 commit 9504492
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
22 changes: 14 additions & 8 deletions app/assets/stylesheets/metrics.scss
@@ -1,10 +1,16 @@
.miq-metrics {
overflow-x:hidden;
overflow-x: hidden;
overflow-y: hidden;

.ad-hoc-toolbar {
margin-left: 10px;
}

.toolbar-pf .toolbar-pf-actions .form-group {
margin-bottom: 0;
border: 0;
}

.ad-hoc-tenant {
margin-left: 5px;
input {
Expand Down Expand Up @@ -59,13 +65,8 @@
margin-bottom: 10px;
}

.dropdown-kebab-pf .dropdown-menu {
left: 0;
}

.toolbar-pf-actions .dropdown-kebab-pf {
float: none;
margin-left: 10px;
}
}

Expand All @@ -92,9 +93,14 @@
overflow-x: hidden;
overflow-y: hidden;

.list-group-item-container {
margin-top: 10px;
}

.form-group {
&.toolbar-actions.ng-scope {
width: calc(100% - 425px);
width: calc(100% - 485px);
border: 0;
}
}

Expand All @@ -104,7 +110,7 @@

.toolbar-pf-actions .dropdown-kebab-pf {
float: none;
margin-left: 10px;
margin-left: 0px;
}

.filter-pf.filter-fields .form-group {
Expand Down
2 changes: 1 addition & 1 deletion app/views/ems_container/ad_hoc/_chart_view_form.html.haml
Expand Up @@ -34,7 +34,7 @@
"data-toggle" => "dropdown",
"aria-haspopup" => "true",
"aria-expanded" => "true"}
%span.fa.fa-fw.fa-ellipsis-v
%span.fa.fa-ellipsis-v
%ul.dropdown-menu{"aria-labelledby" => "dropdownKebab"}
%li{"ng-repeat" => "range in dash.timeIntervals"}
%a{"href" => "#",
Expand Down
4 changes: 2 additions & 2 deletions app/views/ems_container/ad_hoc/_list_view_form.html.haml
Expand Up @@ -13,7 +13,7 @@
"data-live-search" => "true",
"data-actions-box" => "true"}
.ad-hoc-toolbar.filters-selector{"pf-toolbar" => "", "config" => "dash.toolbarConfig"}
.ad-hoc-toolbar.filters-selector{"pf-toolbar" => "", "id" => "filters-selector", "config" => "dash.toolbarConfig"}
%actions
%button.btn.btn-default{"type" => "button",
"ng-click" => "dash.doAddFilter()",
Expand All @@ -33,7 +33,7 @@
"data-toggle" => "dropdown",
"aria-haspopup" => "true",
"aria-expanded" => "true"}
%span.fa.fa-fw.fa-ellipsis-v
%span.fa.fa-ellipsis-v
%ul.dropdown-menu{"aria-labelledby" => "dropdownKebab"}
%li{"ng-repeat" => "range in dash.filterTypes"}
%a{"href" => "#",
Expand Down

0 comments on commit 9504492

Please sign in to comment.