Skip to content

Commit 1b8db66

Browse files
author
dtbuild
committed
628edf013b20d376667768f2ce999b8ecb9a60ad Fix: Specifying dt-left or dt-head-left for a numeric or date column should cause the sort icon to be on the right.
DataTables/DataTablesSrc#342 Sync to source repo @628edf013b20d376667768f2ce999b8ecb9a60ad
1 parent 237d180 commit 1b8db66

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

css/dataTables.bootstrap.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ table.dataTable th.dt-left,
283283
table.dataTable td.dt-left {
284284
text-align: left;
285285
}
286+
table.dataTable th.dt-left div.dt-column-header,
287+
table.dataTable th.dt-left div.dt-column-footer,
288+
table.dataTable td.dt-left div.dt-column-header,
289+
table.dataTable td.dt-left div.dt-column-footer {
290+
flex-direction: row;
291+
}
286292
table.dataTable th.dt-center,
287293
table.dataTable td.dt-center {
288294
text-align: center;
@@ -301,6 +307,12 @@ table.dataTable th.dt-justify,
301307
table.dataTable td.dt-justify {
302308
text-align: justify;
303309
}
310+
table.dataTable th.dt-justify div.dt-column-header,
311+
table.dataTable th.dt-justify div.dt-column-footer,
312+
table.dataTable td.dt-justify div.dt-column-header,
313+
table.dataTable td.dt-justify div.dt-column-footer {
314+
flex-direction: row;
315+
}
304316
table.dataTable th.dt-nowrap,
305317
table.dataTable td.dt-nowrap {
306318
white-space: nowrap;
@@ -322,6 +334,16 @@ table.dataTable tfoot th.dt-head-left,
322334
table.dataTable tfoot td.dt-head-left {
323335
text-align: left;
324336
}
337+
table.dataTable thead th.dt-head-left div.dt-column-header,
338+
table.dataTable thead th.dt-head-left div.dt-column-footer,
339+
table.dataTable thead td.dt-head-left div.dt-column-header,
340+
table.dataTable thead td.dt-head-left div.dt-column-footer,
341+
table.dataTable tfoot th.dt-head-left div.dt-column-header,
342+
table.dataTable tfoot th.dt-head-left div.dt-column-footer,
343+
table.dataTable tfoot td.dt-head-left div.dt-column-header,
344+
table.dataTable tfoot td.dt-head-left div.dt-column-footer {
345+
flex-direction: row;
346+
}
325347
table.dataTable thead th.dt-head-center,
326348
table.dataTable thead td.dt-head-center,
327349
table.dataTable tfoot th.dt-head-center,
@@ -350,6 +372,16 @@ table.dataTable tfoot th.dt-head-justify,
350372
table.dataTable tfoot td.dt-head-justify {
351373
text-align: justify;
352374
}
375+
table.dataTable thead th.dt-head-justify div.dt-column-header,
376+
table.dataTable thead th.dt-head-justify div.dt-column-footer,
377+
table.dataTable thead td.dt-head-justify div.dt-column-header,
378+
table.dataTable thead td.dt-head-justify div.dt-column-footer,
379+
table.dataTable tfoot th.dt-head-justify div.dt-column-header,
380+
table.dataTable tfoot th.dt-head-justify div.dt-column-footer,
381+
table.dataTable tfoot td.dt-head-justify div.dt-column-header,
382+
table.dataTable tfoot td.dt-head-justify div.dt-column-footer {
383+
flex-direction: row;
384+
}
353385
table.dataTable thead th.dt-head-nowrap,
354386
table.dataTable thead td.dt-head-nowrap,
355387
table.dataTable tfoot th.dt-head-nowrap,

0 commit comments

Comments
 (0)