Skip to content

Commit 58cd534

Browse files
author
dtbuild
committed
3279168c73e0932b6a7f97ef029d558bf1ada717 Fix: Bootstrap integration - table-sm stylings for the ordering icons were misaligned.
https://datatables.net/forums/discussion/80889/bs5-styling-issue-in-v2-3 Sync to source repo @3279168c73e0932b6a7f97ef029d558bf1ada717
1 parent a3a1477 commit 58cd534

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

css/dataTables.bootstrap5.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,19 @@ table.dataTable.table-sm > thead > tr td.dt-orderable-asc,
538538
table.dataTable.table-sm > thead > tr td.dt-orderable-desc,
539539
table.dataTable.table-sm > thead > tr td.dt-ordering-asc,
540540
table.dataTable.table-sm > thead > tr td.dt-ordering-desc {
541-
padding-right: 20px;
541+
padding-right: 4px;
542542
}
543543
table.dataTable.table-sm > thead > tr th.dt-orderable-asc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-orderable-desc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-ordering-asc span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-ordering-desc span.dt-column-order,
544544
table.dataTable.table-sm > thead > tr td.dt-orderable-asc span.dt-column-order,
545545
table.dataTable.table-sm > thead > tr td.dt-orderable-desc span.dt-column-order,
546546
table.dataTable.table-sm > thead > tr td.dt-ordering-asc span.dt-column-order,
547547
table.dataTable.table-sm > thead > tr td.dt-ordering-desc span.dt-column-order {
548-
right: 5px;
548+
right: 4px;
549+
}
550+
table.dataTable.table-sm > thead > tr th.dt-type-date span.dt-column-order, table.dataTable.table-sm > thead > tr th.dt-type-numeric span.dt-column-order,
551+
table.dataTable.table-sm > thead > tr td.dt-type-date span.dt-column-order,
552+
table.dataTable.table-sm > thead > tr td.dt-type-numeric span.dt-column-order {
553+
right: 4px;
549554
}
550555

551556
div.dt-scroll-head table.table-bordered {

css/dataTables.bootstrap5.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datatables.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
],
1515
"src-repo": "http://github.com/DataTables/DataTablesSrc",
1616
"last-tag": "2.3.0",
17-
"last-sync": "3878441d3e7b80dcc9ea772a7ace884df66cdde3"
17+
"last-sync": "3279168c73e0932b6a7f97ef029d558bf1ada717"
1818
}

0 commit comments

Comments
 (0)