[PATCH conductor] BZ798570 reworked more_actions dropdown to align properly
jtomasek at redhat.com
jtomasek at redhat.com
Mon Mar 5 12:15:20 UTC 2012
From: Jiri Tomasek <jtomasek at redhat.com>
---
src/app/stylesheets/layout.scss | 8 ++++----
src/app/views/instances/_list.html.haml | 7 ++++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/app/stylesheets/layout.scss b/src/app/stylesheets/layout.scss
index c58d93a..04795d2 100644
--- a/src/app/stylesheets/layout.scss
+++ b/src/app/stylesheets/layout.scss
@@ -3026,7 +3026,7 @@ form.filterable-data{
li{
@include display_inline_block;
vertical-align: middle;
- padding: 1px 0px;
+ padding: 0px 0px;
}
li > *{vertical-align: middle;}
ul.filter-controls{
@@ -3045,18 +3045,18 @@ form.filterable-data{
li.more_actions{
position: relative;
- padding: 8px 0px 8px 0px;
- display: inline;
+ padding: 5px 0px 5px 0px;
& > span {
border: 1px solid #bbb;
border-radius: 3px;
padding: 3px 4px;
@include gradient-bg($cell_color_base, $cell_color_header);
+ &:after{ content: ""; }
}
ul{
display: none;
position: absolute;
- top: 30px;
+ top: 27px;
left: 0px;
background: white;
border: 1px solid #bbb;
diff --git a/src/app/views/instances/_list.html.haml b/src/app/views/instances/_list.html.haml
index ea3602e..267b545 100644
--- a/src/app/views/instances/_list.html.haml
+++ b/src/app/views/instances/_list.html.haml
@@ -1,8 +1,9 @@
- content_for :form_header do
- %li= restful_submit_tag "#{t'instances.list.stop_selected_instances'}", 'stop', multi_stop_instances_path, 'GET', :class => 'button', :id => 'stop_selected_instances'
- %li= restful_submit_tag "#{t'instances.list.reboot_selected_instances'}", 'reboot', multi_reboot_instances_path, 'GET', :class => 'button', :id => 'reboot_selected_instances'
+ %li= restful_submit_tag t('instances.list.stop_selected_instances'), 'stop', multi_stop_instances_path, 'GET', :class => 'button', :id => 'stop_selected_instances'
+ %li= restful_submit_tag t('instances.list.reboot_selected_instances'), 'reboot', multi_reboot_instances_path, 'GET', :class => 'button', :id => 'reboot_selected_instances'
%li.more_actions
- %span= image_tag "more_actions_drop.png"
+ %span
+ = image_tag "more_actions_drop.png"
%ul
%li= link_to "#{t'instances.list.export_events'}", export_events_instances_path(:deployment_id => @deployment)
= hidden_field_tag 'backlink', request.url
--
1.7.7.6
More information about the aeolus-devel
mailing list