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.

SD-894 Make close contextual menu button always visible

Krzysztof Kalisz15c2913b84c0
diff --git a/backend/app/views/spree/admin/shared/_sidebar.html.erb b/backend/app/views/spree/admin/shared/_sidebar.html.erb
index 94250efe19..4d67b49afb 100644
--- a/backend/app/views/spree/admin/shared/_sidebar.html.erb
+++ b/backend/app/views/spree/admin/shared/_sidebar.html.erb
@@ -1,16 +1,15 @@
-
+<div class="d-lg-none page-actions__close border-bottom text-right">
+ <button
+ id="contextual-menu-close"
+ class="btn btn-link"
+ type="button"
+ aria-expanded="false"
+ aria-label="Toggle page actions">
+ <%= svg_icon name: "cancel.svg", width: '20', height: '20' %>
+ </button>
+</div>
<% if content_for?(:page_actions) %>
<div class="page-actions d-lg-none col-12 px-0 <% if content_for?(:sidebar) %>pb-3<% end %> text-center" data-hook="toolbar">
- <div class="page-actions__close border-bottom text-right">
- <button
- id="contextual-menu-close"
- class="btn btn-link"
- type="button"
- aria-expanded="false"
- aria-label="Toggle page actions">
- <%= svg_icon name: "cancel.svg", width: '20', height: '20' %>
- </button>
- </div>
<div class="d-flex justify-content-center flex-wrap">
<%= yield :page_actions %>
</div>