From 74b618230ff736ac7929246e2c83ed95067a4dd0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 30 Dec 2022 09:39:01 +0100 Subject: [PATCH] Put action icons on the same line inside a `.flex` container --- app/views/spree/admin/orders/_shipment.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/spree/admin/orders/_shipment.html.haml b/app/views/spree/admin/orders/_shipment.html.haml index 264ab73ca3..1340ac4e44 100644 --- a/app/views/spree/admin/orders/_shipment.html.haml +++ b/app/views/spree/admin/orders/_shipment.html.haml @@ -85,6 +85,7 @@ %td.actions - if can?(:update, shipment) && shipment.can_modify? - = link_to '', '', :class => 'edit-tracking icon_link icon-edit no-text with-tip', :data => { :action => 'edit' }, :title => Spree.t('edit') - - if shipment.tracking.present? - = link_to '', '', :class => 'delete-tracking icon_link icon-trash no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'remove' }, :title => Spree.t('delete') + .flex + = link_to '', '', :class => 'edit-tracking icon_link icon-edit no-text with-tip', :data => { :action => 'edit' }, :title => Spree.t('edit') + - if shipment.tracking.present? + = link_to '', '', :class => 'delete-tracking icon_link icon-trash no-text with-tip', :data => { 'shipment-number' => shipment.number, :action => 'remove' }, :title => Spree.t('delete')