Skip to content

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

Add padding for 'n items selected' text

dominik-zeglenb9a8bfc9fe77
diff --git a/saleor/static/dashboard/js/components/bulk-actions.js b/saleor/static/dashboard/js/components/bulk-actions.js
index 8e532d5463..8185ffba51 100644
--- a/saleor/static/dashboard/js/components/bulk-actions.js
+++ b/saleor/static/dashboard/js/components/bulk-actions.js
@@ -1,8 +1,9 @@
+function updateCounterSelected () {
+ const count = $('.select-item:checked').length;
+ $('.data-table-header-action-selected-items #counter').text(count);
+}
+
$(document).ready((e) => {
- function updateCounterSelected() {
- const count = $('.select-item:checked').length;
- $('.data-table-header-action-selected-items #counter').text(count);
- }
$('.select-all').on('change', function () {
let $items = $(this).parents('form').find('.switch-actions');
if (this.checked) {
@@ -12,7 +13,7 @@ $(document).ready((e) => {
}
updateCounterSelected();
});
- $('.select-item').on('change', function() {
+ $('.select-item').on('change', function () {
updateCounterSelected();
});
$('.switch-actions').on('change', function () {
diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.html
index 141e55af0d..5c3efa9bac 100644
--- a/templates/dashboard/product/list.html
+++ b/templates/dashboard/product/list.html
@@ -58,7 +58,7 @@
</div>
<div class="row">
<div class="col s12">
- <div class="data-table-header-action-selected-items">
+ <div class="data-table-header-action-selected-items col inline">
<span id="counter">0</span> {% trans "item(s) selected" context "Dashboard bulk action summary" %}
</div>
</div>