Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Responsive tables #436

Closed
bellwood opened this issue Apr 19, 2017 · 2 comments · Fixed by drummonds/bene#50
Closed

Responsive tables #436

bellwood opened this issue Apr 19, 2017 · 2 comments · Fixed by drummonds/bene#50

Comments

@bellwood
Copy link

bellwood commented Apr 19, 2017

Would it be possible to alter:

<div class="table-container">

To:

<div class="table-container table-responsive">

This would allow us bootstrap users to have responsive tables:

http://getbootstrap.com/css/#tables-responsive

Create responsive tables by wrapping any .table in .table-responsive to make them scroll horizontally on small devices...

Thank you =)

@jieter
Copy link
Owner

jieter commented Apr 27, 2017

Yes, but not as a default. We cannot instantly alter behaviour like this. We could add a templates/django_tables2/bootstrap-responsive.html template inheriting everything current bootstrap.html template except for the css class of the wrapper div.

You are welcome to open a PR adding a change along those lines.

@bellwood
Copy link
Author

Sure thing, thank you =)

# for free to join this conversation on GitHub. Already have an account? # to comment