Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix other buttons.

Matthew Kennedy2b975ec284e0
diff --git a/backend/app/assets/javascripts/spree/backend/payments/edit.js b/backend/app/assets/javascripts/spree/backend/payments/edit.js
index 07848a6669..7b2e40aaca 100644
--- a/backend/app/assets/javascripts/spree/backend/payments/edit.js
+++ b/backend/app/assets/javascripts/spree/backend/payments/edit.js
@@ -115,7 +115,7 @@ jQuery(function ($) {
}
PaymentView.prototype.$actions = function () {
- return this.$el.find('.actions')
+ return this.$el.find('.payment-action-buttons')
}
PaymentView.prototype.$amount = function () {
diff --git a/backend/app/views/spree/admin/adjustments/_adjustment.html.erb b/backend/app/views/spree/admin/adjustments/_adjustment.html.erb
index 6e67bdb78d..0f585ce19a 100644
--- a/backend/app/views/spree/admin/adjustments/_adjustment.html.erb
+++ b/backend/app/views/spree/admin/adjustments/_adjustment.html.erb
@@ -18,10 +18,12 @@
<%= Spree.t("state_machine_states.#{adjustment.state}") %>
</span>
</td>
- <td class="actions actions-2 text-center">
- <% if adjustment.open? %>
- <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
- <%= link_to_delete(adjustment, no_text: true) if can?(:delete, adjustment) %>
- <% end %>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <% if adjustment.open? %>
+ <%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
+ <%= link_to_delete(adjustment, no_text: true) if can?(:delete, adjustment) %>
+ <% end %>
+ </span>
</td>
</tr>
diff --git a/backend/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb b/backend/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
index 00a8e3e3e4..6b40eed5f0 100644
--- a/backend/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
+++ b/backend/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
@@ -26,10 +26,12 @@
</span>
</td>
<td><%= pretty_time(reimbursement.created_at) %></td>
- <td class="actions actions-1">
- <% if !reimbursement.reimbursed? %>
- <%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
- <% end %>
+ <td class="actions">
+ <span class="d-flex justify-content-end">
+ <% if !reimbursement.reimbursed? %>
+ <%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
+ <% end %>
+ </span>
</td>
</tr>
<% end %>
diff --git a/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb b/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb
index 7feebbb65f..649e5336e7 100644
--- a/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb
+++ b/backend/app/views/spree/admin/customer_returns/_return_item_decision.html.erb
@@ -38,13 +38,15 @@
<%= return_item.acceptance_status_errors if return_item.acceptance_status_errors.present? %>
</td>
<% if show_decision %>
- <td class='actions actions-2'>
- <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-success btn-sm', params: { "return_item[acceptance_status]" => 'accepted' }, "data-action" => 'save', title: Spree.t(:accept), method: 'put' } do %>
- <%= Spree.t(:accept) %>
- <% end if can?(:accept, return_item) %>
- <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-danger btn-sm', params: { "return_item[acceptance_status]" => 'rejected' }, "data-action" => 'remove', title: Spree.t(:reject), method: 'put' } do %>
- <%= Spree.t(:reject) %>
- <% end if can?(:reject, return_item) %>
+ <td class='actions'>
+ <span class="d-flex justify-content-end">
+ <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-success btn-sm', params: { "return_item[acceptance_status]" => 'accepted' }, "data-action" => 'save', title: Spree.t(:accept), method: 'put' } do %>
+ <%= Spree.t(:accept) %>
+ <% end if can?(:accept, return_item) %>
+ <%= button_to [:admin, return_item], { class: 'with-tip display-inline btn btn-danger btn-sm', params: { "return_item[acceptance_status]" => 'rejected' }, "data-action" => 'remove', title: Spree.t(:reject), method: 'put' } do %>
+ <%= Spree.t(:reject) %>
+ <% end if can?(:reject, return_item) %>
+ </span>
</td>
<% end %>
</tr>
diff --git a/backend/app/views/spree/admin/customer_returns/index.html.erb b/backend/app/views/spree/admin/customer_returns/index.html.erb
index 589250678b..f6061368e5 100644
--- a/backend/app/views/spree/admin/customer_returns/index.html.erb
+++ b/backend/app/views/spree/admin/customer_returns/index.html.erb
@@ -37,8 +37,10 @@
<strong class="badge badge-inactive text-uppercase"><%= Spree.t(:incomplete) %></strong>
<% end %>
</td>
- <td class='actions actions-1' data-hook="admin_orders_customer_returns_index_row_actions">
- <%= link_to_edit_url(edit_admin_order_customer_return_path(@order, customer_return), title: "admin_edit_#{dom_id(customer_return)}", no_text: true) if can?(:edit, customer_return) %>
+ <td class='actions' data-hook="admin_orders_customer_returns_index_row_actions">
+ <span class="d-flex justify-content-end">
+ <%= link_to_edit_url(edit_admin_order_customer_return_path(@order, customer_return), title: "admin_edit_#{dom_id(customer_return)}", no_text: true) if can?(:edit, customer_return) %>
+ </span>
</td>
</tr>
<% end %>
diff --git a/backend/app/views/spree/admin/images/index.html.erb b/backend/app/views/spree/admin/images/index.html.erb
index 1e7b9c8c90..88a7b57b1a 100644
--- a/backend/app/views/spree/admin/images/index.html.erb
+++ b/backend/app/views/spree/admin/images/index.html.erb
@@ -47,9 +47,11 @@
<td><%= options_text_for(image) %></td>
<% end %>
<td><%= image.alt %></td>
- <td class="actions actions-2 text-right">
- <%= link_to_with_icon('edit.svg', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
- <%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %>
+ <td class="actions">
+ <span class="d-flex justify-content-end">
+ <%= link_to_with_icon('edit.svg', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
+ <%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %>
+ </span>
</td>
</tr>
<% end %>
diff --git a/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb b/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb
index 2a6cb9decd..e3f628ad20 100644
--- a/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb
+++ b/backend/app/views/spree/admin/option_types/_option_value_fields.html.erb
@@ -5,5 +5,9 @@
</td>
<td class="name"><%= f.text_field :name, class: "form-control" %></td>
<td class="presentation"><%= f.text_field :presentation, class: "form-control" %></td>
- <td class="actions actions-1 text-center"><%= link_to_icon_remove_fields f %></td>
+ <td class="actions">
+ <span class="d-flex justify-content-end">
+ <%= link_to_icon_remove_fields f %>
+ </span>
+ </td>
</tr>
diff --git a/backend/app/views/spree/admin/orders/_line_items.html.erb b/backend/app/views/spree/admin/orders/_line_items.html.erb
index 24123afbed..5babb89ceb 100644
--- a/backend/app/views/spree/admin/orders/_line_items.html.erb
+++ b/backend/app/views/spree/admin/orders/_line_items.html.erb
@@ -36,7 +36,7 @@
</td>
<td class="line-item-total text-center"><%= line_item_shipment_price(item, item.quantity) %></td>
<td class="cart-line-item-delete actions" data-hook="cart_line_item_delete">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if can? :update, item %>
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
<%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %>
diff --git a/backend/app/views/spree/admin/orders/_shipment.html.erb b/backend/app/views/spree/admin/orders/_shipment.html.erb
index ac650ac44b..61ebb2c1f1 100644
--- a/backend/app/views/spree/admin/orders/_shipment.html.erb
+++ b/backend/app/views/spree/admin/orders/_shipment.html.erb
@@ -44,7 +44,7 @@
</div>
</td>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if can? :update, shipment %>
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-method btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), no_text: true %>
<%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-method btn btn-success btn-sm', data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save'), no_text: true %>
@@ -67,7 +67,7 @@
<% end %>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if( (can? :update, shipment) and !shipment.shipped?) %>
<%= link_to_with_icon 'edit.svg', Spree.t('edit'), "javascript:;", class: 'edit-method with-tip btn btn-sm btn-outline-secondary', data: {action: 'edit'}, no_text: true %>
<% end %>
@@ -81,7 +81,7 @@
<%= text_field_tag :tracking, shipment.tracking, class: "form-control" %>
</td>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if can? :update, shipment %>
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-tracking btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), no_text: true %>
<%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-tracking btn btn-success btn-sm', data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save'), no_text: true %>
@@ -107,7 +107,7 @@
<% end %>
</td>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if can? :update, shipment %>
<%= link_to_with_icon 'edit.svg', Spree.t('edit'), "#", class: 'edit-tracking btn btn-outline-secondary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %>
<% end %>
diff --git a/backend/app/views/spree/admin/orders/_shipment_manifest.html.erb b/backend/app/views/spree/admin/orders/_shipment_manifest.html.erb
index fe4cc61e75..4fb7b75b6d 100644
--- a/backend/app/views/spree/admin/orders/_shipment_manifest.html.erb
+++ b/backend/app/views/spree/admin/orders/_shipment_manifest.html.erb
@@ -32,7 +32,7 @@
</td>
<td class="cart-item-delete actions" data-hook="cart_item_delete">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<% if((!shipment.shipped?) && can?(:update, item.line_item)) %>
<%= link_to_with_icon 'edit.svg', Spree.t('actions.edit'), "#", class: 'edit-item btn btn-outline-secondary btn-sm', title: Spree.t('actions.edit'), no_text: true %>
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-item btn btn-outline-secondary btn-sm', data: { action: 'cancel' }, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
diff --git a/backend/app/views/spree/admin/payments/_list.html.erb b/backend/app/views/spree/admin/payments/_list.html.erb
index 15bd1b9df6..8c6de84d2a 100644
--- a/backend/app/views/spree/admin/payments/_list.html.erb
+++ b/backend/app/views/spree/admin/payments/_list.html.erb
@@ -25,7 +25,7 @@
</span>
</td>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center payment-action-buttons">
<% payment.actions.each do |action| %>
<% if action == 'credit' %>
<%= link_to_with_icon('exit.svg', Spree.t(:refund), new_admin_order_payment_refund_path(@order, payment), no_text: true, class: "btn btn-outline-secondary btn-sm") if can?(:create, Spree::Refund) %>
diff --git a/backend/app/views/spree/admin/products/stock.html.erb b/backend/app/views/spree/admin/products/stock.html.erb
index f622e4edf6..af228f9582 100644
--- a/backend/app/views/spree/admin/products/stock.html.erb
+++ b/backend/app/views/spree/admin/products/stock.html.erb
@@ -63,7 +63,7 @@
<% end if can? :update, item %>
</td>
<td class="actions">
- <span class="d-flex justify-content-end">
+ <span class="d-flex justify-content-center">
<%= link_to_with_icon('delete.svg', Spree.t(:remove), [:admin, item], method: :delete, remote: true, class: 'icon_link btn btn-danger btn-sm', data: { action: :remove, confirm: Spree.t(:are_you_sure) }, no_text: true) if can? :destroy, item %>
</span>
</td>
diff --git a/backend/app/views/spree/admin/prototypes/_prototypes.html.erb b/backend/app/views/spree/admin/prototypes/_prototypes.html.erb
index 8760657bf2..0a2a2c4bca 100644
--- a/backend/app/views/spree/admin/prototypes/_prototypes.html.erb
+++ b/backend/app/views/spree/admin/prototypes/_prototypes.html.erb
@@ -10,12 +10,14 @@
<% @prototypes.each do |prototype| %>
<tr id="row_<%= prototype.id %>" data-hook="available_row">
<td><%= prototype.name %></td>
- <td class="actions actions-1">
- <%= link_to_with_icon 'save.svg',
- Spree.t(:select),
- select_admin_prototype_url(prototype),
- class: 'btn btn-success btn-sm ajax select_properties_from_prototype',
- no_text: true %>
+ <td class="actions">
+ <span class="d-flex justify-content-end">
+ <%= link_to_with_icon 'save.svg',
+ Spree.t(:select),
+ select_admin_prototype_url(prototype),
+ class: 'btn btn-success btn-sm ajax select_properties_from_prototype',
+ no_text: true %>
+ </span>
</td>
</tr>
<% end %>
diff --git a/backend/app/views/spree/admin/return_authorizations/_form.html.erb b/backend/app/views/spree/admin/return_authorizations/_form.html.erb
index 38f1218e24..0726428f86 100644
--- a/backend/app/views/spree/admin/return_authorizations/_form.html.erb
+++ b/backend/app/views/spree/admin/return_authorizations/_form.html.erb
@@ -14,8 +14,8 @@
<th><%= Spree.t(:status) %></th>
<th><%= Spree.t(:charged) %></th>
<th><%= Spree.t(:purchased_quantity) %></th>
- <th><%= Spree.t(:return_quantity) %></th>
- <th><%= Spree.t(:pre_tax_refund_amount) %></th>
+ <th style="min-width:130px;"><%= Spree.t(:return_quantity) %></th>
+ <th style="min-width:130px;"><%= Spree.t(:pre_tax_refund_amount) %></th>
<th><%= Spree.t(:reimbursement_type) %></th>
<th><%= Spree.t(:exchange_for) %></th>
</tr>
diff --git a/backend/app/views/spree/admin/stock_transfers/new.html.erb b/backend/app/views/spree/admin/stock_transfers/new.html.erb
index 18384e3e6a..47d01d4734 100644
--- a/backend/app/views/spree/admin/stock_transfers/new.html.erb
+++ b/backend/app/views/spree/admin/stock_transfers/new.html.erb
@@ -8,12 +8,14 @@
<tr>
<td>{{name}}</td>
<td class='text-center'>{{quantity}}</td>
- <td class='actions actions-1 text-center'>
- <button class='icon_link btn btn-danger btn-sm transfer_remove_variant' data-variant-id='{{id}}'>
- <span class='icon icon-delete' data-variant-id='{{id}}'></span>
- </button>
- <input type='hidden' id='variant[]' name='variant[]' value='{{id}}'>
- <input type='hidden' id='quantity[]' name='quantity[]' value='{{quantity}}'>
+ <td class='actions'>
+ <span class='d-flex justify-content-end'>
+ <button class='icon_link btn btn-danger btn-sm transfer_remove_variant' data-variant-id='{{id}}'>
+ <span class='icon icon-delete' data-variant-id='{{id}}'></span>
+ </button>
+ <input type='hidden' id='variant[]' name='variant[]' value='{{id}}'>
+ <input type='hidden' id='quantity[]' name='quantity[]' value='{{quantity}}'>
+ </script>
</td>
</tr>
{{/each}}
diff --git a/backend/app/views/spree/admin/store_credits/index.html.erb b/backend/app/views/spree/admin/store_credits/index.html.erb
index f708155484..ba4822e4e6 100644
--- a/backend/app/views/spree/admin/store_credits/index.html.erb
+++ b/backend/app/views/spree/admin/store_credits/index.html.erb
@@ -32,11 +32,13 @@
<td><%= store_credit.category_name %></td>
<td><%= store_credit.created_by_email %></td>
<td><%= l store_credit.created_at.to_date %></td>
- <td class="actions actions-2 text-center" data-hook="admin_store_credits_index_row_actions">
- <% if store_credit.amount_used.zero? %>
- <%= link_to_edit_url spree.edit_admin_user_store_credit_path(@user, store_credit), no_text: true if can?(:edit, store_credit) %>
- <%= link_to_delete store_credit, no_text: true, url: spree.admin_user_store_credit_path(@user, store_credit) if can?(:destroy, store_credit) %>
- <% end %>
+ <td class="actions" data-hook="admin_store_credits_index_row_actions">
+ <span class="d-flex justify-content-end">
+ <% if store_credit.amount_used.zero? %>
+ <%= link_to_edit_url spree.edit_admin_user_store_credit_path(@user, store_credit), no_text: true if can?(:edit, store_credit) %>
+ <%= link_to_delete store_credit, no_text: true, url: spree.admin_user_store_credit_path(@user, store_credit) if can?(:destroy, store_credit) %>
+ <% end %>
+ </span>
</td>
</tr>
<% end %>
diff --git a/backend/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb b/backend/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
index 3e7fe1d7e5..484dda4239 100644
--- a/backend/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
+++ b/backend/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb
@@ -21,10 +21,12 @@
<td class="text-center">
<input class="quantity form-control" id="variant_quantity" data-variant-id="{{variant.id}}" type="number" min="1" value="1">
</td>
- <td class="actions actions-1 text-center">
- <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
- <%= svg_icon name: "add.svg", width: '16', height: '16' %>
- </button>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
+ <%= svg_icon name: "add.svg", width: '16', height: '16' %>
+ </button>
+ </span>
</td>
{{else}}
{{#if variant.is_backorderable}}
@@ -35,10 +37,12 @@
<td class="text-center">
<input class="quantity form-control" id="variant_quantity" data-variant-id="{{variant.id}}" type="number" min="1" value="1">
</td>
- <td class="actions actions-1 text-center">
- <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
- <%= svg_icon name: "add.svg", width: '16', height: '16' %>
- </button>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
+ <%= svg_icon name: "add.svg", width: '16', height: '16' %>
+ </button>
+ </span>
</td>
{{else}}
<td class="text-center"><%= Spree.t(:out_of_stock) %></td>
@@ -51,10 +55,12 @@
<td class="text-center">
<input class="quantity form-control" id="variant_quantity" data-variant-id="{{variant.id}}" type="number" min="1" value="1">
</td>
- <td class="actions actions-1 text-center">
- <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
- <%= svg_icon name: "add.svg", width: '16', height: '16' %>
- </button>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <button class="btn btn-sm btn-success add_variant with-tip" data-variant-id="{{variant.id}}" title="<%= Spree.t(:add) %>" data-action="add">
+ <%= svg_icon name: "add.svg", width: '16', height: '16' %>
+ </button>
+ </span>
</td>
{{/if}}
</tr>
diff --git a/backend/app/views/spree/admin/variants/_autocomplete_stock.js.erb b/backend/app/views/spree/admin/variants/_autocomplete_stock.js.erb
index 77c7d243e4..acb6207be8 100644
--- a/backend/app/views/spree/admin/variants/_autocomplete_stock.js.erb
+++ b/backend/app/views/spree/admin/variants/_autocomplete_stock.js.erb
@@ -17,10 +17,12 @@
<td>
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
</td>
- <td class="actions actions-1">
- <button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location_id}}" title="<%= Spree.t(:add) %>" data-action="add">
- <%= svg_icon name: "add", width: '16', height: '16' %>
- </button>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location_id}}" title="<%= Spree.t(:add) %>" data-action="add">
+ <%= svg_icon name: "add", width: '16', height: '16' %>
+ </button>
+ </span>
</td>
{{else}}
{{#if this.available}}
@@ -31,10 +33,12 @@
<td>
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.stock_location_id}}" type="number" min="1" value="1">
</td>
- <td class="actions actions-1">
- <button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location_id}}" title="<%= Spree.t(:add) %>" data-action="add">
- <%= svg_icon name: "add", width: '16', height: '16' %>
- </button>
+ <td class="actions">
+ <span class="d-flex justify-content-center">
+ <button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location_id}}" title="<%= Spree.t(:add) %>" data-action="add">
+ <%= svg_icon name: "add", width: '16', height: '16' %>
+ </button>
+ </span>
</td>
{{else}}
<td><%= Spree.t(:out_of_stock) %></td>
diff --git a/backend/app/views/spree/admin/variants/_split.js.erb b/backend/app/views/spree/admin/variants/_split.js.erb
index 7cdae5e76a..5c8ec8f0cc 100644
--- a/backend/app/views/spree/admin/variants/_split.js.erb
+++ b/backend/app/views/spree/admin/variants/_split.js.erb
@@ -21,13 +21,15 @@
<td>
<input class="quantity form-control" id="item_quantity" type="number" min="1" value="1" max="{{max_quantity}}">
</td>
- <td class='actions text-center'>
- <a href='#' class='cancel-split with-tip btn btn-sm btn-outline-secondary' title='Cancel'>
- <%= svg_icon name: "cancel", classes: 'icon-cancel', width: '16', height: '16' %>
- </a>
- <a href='#' class='icon-save-split save-split with-tip btn btn-sm btn-success' title='Save'>
- <%= svg_icon name: "split", classes: 'icon-save', width: '16', height: '16' %>
- </a>
+ <td class='actions'>
+ <span class='d-flex justify-content-center'>
+ <a href='#' class='cancel-split with-tip btn btn-sm btn-outline-secondary' title='Cancel'>
+ <%= svg_icon name: "cancel", classes: 'icon-cancel', width: '16', height: '16' %>
+ </a>
+ <a href='#' class='icon-save-split save-split with-tip btn btn-sm btn-success' title='Save'>
+ <%= svg_icon name: "split", classes: 'icon-save', width: '16', height: '16' %>
+ </a>
+ </span>
</td>
</tr>
</script>