Responsive not working in mobile view - missing some columns

Responsive not working in mobile view - missing some columns

cratagcratag Posts: 10Questions: 3Answers: 0
edited April 2021 in DataTables 1.10

I have a rails app that uses mobile view as well. I've read adding responsive: true would make it fit in the view, but it doesn't. My table has 4 rows, and shows only two of them in mobile - and I cant scroll right to see the whole table.

<table class="table table-sm table-dashboard data-table no-wrap mb-0 fs--1 w-100" id="myTable" data-gene="gene">
...
</table>
  $('#myTable').DataTable({
    responsive: true
  });

PC view:

Mobile view:

No errors in the console

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.