From 30253ffd074374342ba7fd5ce8d5b52b206623c3 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 12 Jun 2013 15:51:07 +1000 Subject: [PATCH] align actions column left for better usability --- app/overrides/add_capture_order_shortcut.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/overrides/add_capture_order_shortcut.rb b/app/overrides/add_capture_order_shortcut.rb index b27dd95783..0fef9db5d4 100644 --- a/app/overrides/add_capture_order_shortcut.rb +++ b/app/overrides/add_capture_order_shortcut.rb @@ -20,4 +20,9 @@ Deface::Override.new(:virtual_path => "spree/admin/orders/index", :set_attributes => "#listing_orders colgroup col:last-child", :attributes => {:style => "width: 12%"} #was 8% ) - +#And align actions column (not spree standard, but looks better IMO) +Deface::Override.new(:virtual_path => "spree/admin/orders/index", + :name => "add_capture_order_shortcut_align", + :set_attributes => "[data-hook='admin_orders_index_row_actions']", + :attributes => {:class => "actions", :style => "text-align:left;"} #removes 'align-center' class + )