Skip to content

Commit

Permalink
try to resize columns
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 4, 2024
1 parent faacb96 commit 754cfd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/_static/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
$(document).ready(function() {
$('table.datatable').DataTable({
columnDefs: [{ width: 'auto', targets: '_all' }],
autoWidth: true,
paging: false,
searching: false,
});
});

$(window).on('resize', function() {
$('table.datatable').DataTable().columns.adjust().draw();
});

0 comments on commit 754cfd1

Please sign in to comment.