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: small UI improvements

Damian Legawiec8cccd28553bd
diff --git a/admin/app/views/spree/admin/option_types/_form.html.erb b/admin/app/views/spree/admin/option_types/_form.html.erb
index d708e1c7fc..65a1c8557f 100644
--- a/admin/app/views/spree/admin/option_types/_form.html.erb
+++ b/admin/app/views/spree/admin/option_types/_form.html.erb
@@ -55,7 +55,7 @@
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-condensed">
- <thead class="text-muted border-bottom">
+ <thead>
<tr>
<th></th>
<th><%= raw(Spree.t(:presentation) + required_span_tag) %></th>
@@ -73,7 +73,7 @@
<tr data-nested-form-target="target"></tr>
<tr class="hover-none">
- <td colspan="4" class="text-center p-1">
+ <td colspan="4" class="text-center p-2">
<button type="button" data-action="nested-form#add" class="btn btn-link py-3 w-100" id="add_option_value_button">
<%= icon('plus') %>
<%= Spree.t(:add_one) %>
diff --git a/admin/app/views/spree/admin/orders/_filters.html.erb b/admin/app/views/spree/admin/orders/_filters.html.erb
index 6cf107d58b..b6f544ed5f 100644
--- a/admin/app/views/spree/admin/orders/_filters.html.erb
+++ b/admin/app/views/spree/admin/orders/_filters.html.erb
@@ -1,6 +1,6 @@
<div id="table-filter">
<%= search_form_for [:admin, @vendor || @user, @search], url: controller_name == 'checkouts' ? spree.admin_checkouts_url : nil do |f| %>
- <div class="filter-wrap border-bottom">
+ <div class="filter-wrap">
<div class="d-flex flex-column flex-lg-row">
<div class="flex-grow-1 mr-lg-2 mb-3 mb-lg-0">
<div class="form-control d-flex align-items-center py-0 focus-shadow-blue focus-border-blue">
diff --git a/admin/app/views/spree/admin/orders/_list.html.erb b/admin/app/views/spree/admin/orders/_list.html.erb
index 73c68ddf41..4f0c714dfb 100644
--- a/admin/app/views/spree/admin/orders/_list.html.erb
+++ b/admin/app/views/spree/admin/orders/_list.html.erb
@@ -2,7 +2,7 @@
<div class="table-responsive">
<table class="table position-relative" id="listing_orders">
<thead class="text-muted">
- <tr data-hook="admin_orders_index_headers">
+ <tr>
<th><%= I18n.t(:number, scope: 'activerecord.attributes.spree/order') %></th>
<% if controller_name == 'orders' %>
<th><%= sort_link @search, :completed_at, Spree.t(:date) %></th>
diff --git a/admin/app/views/spree/admin/products/_filters.html.erb b/admin/app/views/spree/admin/products/_filters.html.erb
index f6bb97697d..adec22ae8e 100644
--- a/admin/app/views/spree/admin/products/_filters.html.erb
+++ b/admin/app/views/spree/admin/products/_filters.html.erb
@@ -1,4 +1,4 @@
-<div class="filter-wrap border-bottom">
+<div class="filter-wrap">
<div class="d-flex flex-column flex-lg-row">
<%= form_tag request.fullpath, id: "quick-search", class: 'flex-grow-1 mr-lg-2 mb-3 mb-lg-0', method: :get do %>
<div class="form-control d-flex align-items-center py-0 focus-shadow-blue focus-border-blue">
diff --git a/admin/app/views/spree/admin/variants/form/_media.html.erb b/admin/app/views/spree/admin/variants/form/_media.html.erb
index d6e2697521..596729fd3f 100644
--- a/admin/app/views/spree/admin/variants/form/_media.html.erb
+++ b/admin/app/views/spree/admin/variants/form/_media.html.erb
@@ -1,6 +1,6 @@
<%= turbo_frame_tag 'media-form', class: 'card mb-4', data: { controller: 'media-form', media_form_delete_url_value: spree.bulk_destroy_admin_assets_path(viewable_id: viewable&.id) } do %>
<div class="card-header">
- <h5 class="card-title mr-2" style="line-height: 28px"><%= Spree.t(:media) %></h5>
+ <h5 class="card-title mr-2"><%= Spree.t(:media) %></h5>
<button type="button" data-media-form-target="deleteButton" class="btn btn-sm btn-danger btn-outline d-none ml-auto" data-action="media-form#deleteSelected">
<%= icon('trash') %>
<%= Spree.t(:delete_selected) %>