Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix columns' text alignment

dominik-zeglenbf4ec6fcb531
diff --git a/saleor/static/dashboard/scss/components/_data-table.scss b/saleor/static/dashboard/scss/components/_data-table.scss
index 299e93f53d..3f2db09bca 100644
--- a/saleor/static/dashboard/scss/components/_data-table.scss
+++ b/saleor/static/dashboard/scss/components/_data-table.scss
@@ -75,6 +75,14 @@
padding: 0 24px;
}
+ &.no-align {
+ td, th {
+ &:last-child {
+ text-align: inherit;
+ }
+ }
+ }
+
input[type=checkbox].filled-in + label {
margin-top: 5px;
padding: 0;
diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.html
index e25addc136..c2022d6d64 100644
--- a/templates/dashboard/category/list.html
+++ b/templates/dashboard/category/list.html
@@ -112,7 +112,7 @@
{% if categories %}
<div class="card">
<div class="data-table-container">
- <table class="bordered highlight responsive data-table data-table-description">
+ <table class="bordered highlight responsive data-table data-table-description no-align">
<thead>
<tr>
<th>{% trans "Name" context "Category list table header name" %}</th>
diff --git a/templates/dashboard/group/list.html b/templates/dashboard/group/list.html
index 3d81bf9ecc..f2724408e3 100644
--- a/templates/dashboard/group/list.html
+++ b/templates/dashboard/group/list.html
@@ -39,7 +39,7 @@
{% if groups %}
<div class="card">
<div class="data-table-container">
- <table class="bordered highlight data-table data-table-description">
+ <table class="bordered highlight data-table data-table-description no-align">
<thead>
<tr>
<th>{% trans "Name" context "Dashboard groups list table header name" %}</th>
diff --git a/templates/dashboard/product/stock_location/list.html b/templates/dashboard/product/stock_location/list.html
index ffce92e8c7..52f306c97a 100644
--- a/templates/dashboard/product/stock_location/list.html
+++ b/templates/dashboard/product/stock_location/list.html
@@ -36,7 +36,7 @@
{% if locations %}
<div class="card">
<div class="data-table-container">
- <table class="highlight bordered data-table">
+ <table class="highlight bordered data-table no-align">
<thead>
<tr>
<th>{% trans "Name" context "Dashboard stock location table header name" %}</th>