Skip to content

Commit

Permalink
5a05ebd839add77d82207f90478871cb3c69546c Fix: If `-init columns.class…
Browse files Browse the repository at this point in the history
…Name` is used to define an alignment class such as `dt-left`, it will now take priority over the automatic type detection classes.

https://stackoverflow.com/a/74823875/1049111

Sync to source repo @5a05ebd839add77d82207f90478871cb3c69546c
  • Loading branch information
dtbuild committed Jan 6, 2025
1 parent c904b11 commit 692671c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions css/dataTables.dataTables.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ table.dataTable th,
table.dataTable td {
box-sizing: border-box;
}
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
text-align: right;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left;
Expand All @@ -267,11 +272,6 @@ table.dataTable td.dt-empty {
text-align: center;
vertical-align: top;
}
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
text-align: right;
}
table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
Expand Down
Loading

0 comments on commit 692671c

Please sign in to comment.