From f1ffadd39c2830af5042363d4fa2efbd26ca7a55 Mon Sep 17 00:00:00 2001 From: Navaneeth Date: Sat, 25 Oct 2025 22:11:02 +0530 Subject: [PATCH] Make the width of "Back to Store" and "Back to Website" buttons consistent with other buttons in order confirmation page --- .../orders/form/_update_buttons.html.haml | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/app/views/spree/orders/form/_update_buttons.html.haml b/app/views/spree/orders/form/_update_buttons.html.haml index be58dbbd4b..e44315bbdc 100644 --- a/app/views/spree/orders/form/_update_buttons.html.haml +++ b/app/views/spree/orders/form/_update_buttons.html.haml @@ -1,21 +1,19 @@ .row - .columns.small-12.medium-5 - - if current_order.nil? || current_order.distributor.nil? || current_order.distributor == @order.distributor - - if current_order&.line_items.present? - = link_to main_app.cart_path, :class => "button expand" do - = t(:order_back_to_cart) - - else - .columns.small-12.medium-6 - = link_to "#{main_app.enterprise_shop_path(@order.distributor)}#/shop_panel", class: "button expand" do - = t(:order_back_to_store) - .columns.small-12.medium-6 - - if @order.distributor.website.present? - = link_to_service "https://", @order.distributor.website, class: "button expand" do - = t(:order_back_to_website) + - if current_order.nil? || current_order.distributor.nil? || current_order.distributor == @order.distributor + - if current_order&.line_items.present? + = link_to main_app.cart_path, :class => "button expand" do + = t(:order_back_to_cart) - else -   + .columns.small-12.medium-3 + = link_to "#{main_app.enterprise_shop_path(@order.distributor)}#/shop_panel", class: "button expand" do + = t(:order_back_to_store) + .columns.small-12.medium-3 + - if @order.distributor.website.present? + = link_to_service "https://", @order.distributor.website, class: "button expand" do + = t(:order_back_to_website) + - else +   - if order.changes_allowed? - .columns.show-for-medium-up.medium-1   .columns.small-12.medium-3 = link_to main_app.cancel_order_path(@order), method: :put, class: "button secondary expand", "data-confirm": t('orders_confirm_cancel') do %i.ofn-i_009-close