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.

Admin UI update

Damian Legawiec67d13071ec54
diff --git a/admin/app/helpers/spree/admin/base_helper.rb b/admin/app/helpers/spree/admin/base_helper.rb
index b631d283df..e70045def9 100644
--- a/admin/app/helpers/spree/admin/base_helper.rb
+++ b/admin/app/helpers/spree/admin/base_helper.rb
@@ -3,6 +3,10 @@ module Spree
module BaseHelper
include Spree::ImagesHelper
+ def enterprise_edition?
+ false
+ end
+
def available_countries_iso
@available_countries_iso ||= current_store.countries_available_for_checkout.pluck(:iso)
end
diff --git a/admin/app/views/spree/admin/orders/_line_items.html.erb b/admin/app/views/spree/admin/orders/_line_items.html.erb
index 82bbf3c1b5..ed72283f4d 100644
--- a/admin/app/views/spree/admin/orders/_line_items.html.erb
+++ b/admin/app/views/spree/admin/orders/_line_items.html.erb
@@ -1,7 +1,7 @@
<%= turbo_frame_tag dom_id(@order, :line_items), class: "card mb-4 overflow-hidden" do %>
<% if @line_items.any? %>
- <div class="card-header d-flex justify-content-between align-items-center pb-3">
+ <div class="card-header d-flex justify-content-between align-items-center">
<h5 class="card-title d-flex align-items-center">
<%= Spree.t(:line_items) %>
<span class="badge badge-info ml-2"><%= @line_items.count %></span>
diff --git a/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb b/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb
index d226565114..389b33cd7e 100644
--- a/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb
+++ b/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb
@@ -3,7 +3,7 @@
<%= active_link_to_with_icon('building-store', Spree.t(:storefront), spree.admin_themes_path, class: 'nav-link', active: storefront_active) %>
<% if storefront_active %>
- <ul class="ml-4 font-size-base pl-1 mb-3 nav-submenu flex-column mt-1">
+ <ul class="ml-4 pl-1 mb-2 nav-submenu flex-column mt-1">
<li class="nav-item">
<%= active_link_to Spree.t(:themes), spree.admin_themes_path, class: 'nav-link' %>
</li>
diff --git a/admin/app/views/spree/admin/taxons/_rules_form.html.erb b/admin/app/views/spree/admin/taxons/_rules_form.html.erb
index a2dcedfe55..4035b4428f 100644
--- a/admin/app/views/spree/admin/taxons/_rules_form.html.erb
+++ b/admin/app/views/spree/admin/taxons/_rules_form.html.erb
@@ -24,13 +24,11 @@
<% end %>
<!-- Inserted elements will be injected before that target. -->
- <div data-nested-form-target="target" class="mb-3"></div>
+ <div data-nested-form-target="target" class="mb-2"></div>
- <div class="text-center">
- <button type="button" class="btn btn-link" data-action="nested-form#add">
- <%= icon('plus', class: 'mr-2') %>
- <%= Spree.t(:add_one)%>
- </button>
- </div>
+ <button type="button" class="btn btn-link w-100 py-3" data-action="nested-form#add">
+ <%= icon('plus', class: 'mr-2') %>
+ <%= Spree.t(:add_one)%>
+ </button>
</div>
</div>