From 754cfd1398c88eab21d90165ffc558138620d2bb Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Tue, 3 Sep 2024 21:05:53 -0500 Subject: [PATCH] try to resize columns --- docs/_static/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/_static/main.js b/docs/_static/main.js index ca4e7e81..f93bdbde 100644 --- a/docs/_static/main.js +++ b/docs/_static/main.js @@ -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(); +});