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.

tables badge fix

Damian Legawiec0dad4c1c1263
diff --git a/backend/app/assets/stylesheets/spree/backend/components/_tables.scss b/backend/app/assets/stylesheets/spree/backend/components/_tables.scss
index 2ce5f37ef9..2b98b9e776 100644
--- a/backend/app/assets/stylesheets/spree/backend/components/_tables.scss
+++ b/backend/app/assets/stylesheets/spree/backend/components/_tables.scss
@@ -21,7 +21,7 @@ table.table {
}
.badge {
- font-size: 0.85em;
+ text-transform: uppercase;
}
thead {
diff --git a/backend/app/views/spree/admin/countries/index.html.erb b/backend/app/views/spree/admin/countries/index.html.erb
index f4964570eb..d3f8578888 100644
--- a/backend/app/views/spree/admin/countries/index.html.erb
+++ b/backend/app/views/spree/admin/countries/index.html.erb
@@ -10,9 +10,9 @@
<thead>
<tr data-hook="tax_header">
<th><%= Spree.t(:country_name) %></th>
- <th><%= Spree.t(:iso3) %></th>
- <th><%= Spree.t(:states_required) %></th>
- <th><%= Spree.t(:zipcode_required) %></th>
+ <th class="text-center"><%= Spree.t(:iso3) %></th>
+ <th class="text-center"><%= Spree.t(:states_required) %></th>
+ <th class="text-center"><%= Spree.t(:zipcode_required) %></th>
<th class="actions"></th>
</tr>
</thead>
@@ -20,9 +20,9 @@
<% @countries.each do |country| %>
<tr id="<%= spree_dom_id country %>" data-hook="country_row">
<td><%= country.name %></td>
- <td><%= country.iso3 %></td>
- <td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
- <td class="text-center"><%= country.zipcode_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
+ <td class="text-center"><%= country.iso3 %></td>
+ <td class="text-center"><%= active_badge(country.states_required?) %></td>
+ <td class="text-center"><%= active_badge(country.zipcode_required?) %></td>
<td class="actions actions-2 text-right">
<%= link_to_edit(country, no_text: true) if can? :edit, country %>
<%= link_to_delete(country, no_text: true) if can? :delete, country %>