Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

tables_dynamic overflow in mobile (responsiveness issue) #358

Closed
MedUnes opened this issue Jan 7, 2017 · 7 comments
Closed

tables_dynamic overflow in mobile (responsiveness issue) #358

MedUnes opened this issue Jan 7, 2017 · 7 comments

Comments

@MedUnes
Copy link

MedUnes commented Jan 7, 2017

There is a responsiveness issue at this page

As you can see in the screenshot below, the Datatables widget overflows the main content section
image

To reproduce this issue open this link either in a mobile device or in google chrome and then simulate a mobile device in the inspector (F12)

@krzysiekpiasecki
Copy link
Collaborator

I have recreated.

@mahmoud-nb
Copy link

The width of a table can not be less than the width of its columns, so the width of a column can not be less than its contents.
so, In this case, no way to compress the table to take the width of the screen.
I suggest adding a scroll for the div that contains tables

Try to add the "scrollable" class to the div.row that contains a table

.scrollable{ overflow:auto; }

@krzysiekpiasecki
Copy link
Collaborator

Sometimes hiding a columns is also a resolution.

@MedUnes
Copy link
Author

MedUnes commented Jan 7, 2017

@mahmoud-nb

.dataTables_wrapper > .row{
  overflow:auto !important; /*prevent datatables overflowing its container*/
}

solved the problem for me.
I guess you can make a pull request for this.

@MedUnes
Copy link
Author

MedUnes commented Jan 7, 2017

This is a PR that should patch this issue.

#359

@connectnbs
Copy link

You can simply add style="overflow:auto;" to solve this if you insist to keep all the rows. or check the resposive datatable in the Gentell Admin theme.

@AndreiCN
Copy link
Contributor

Hello there, "overflow:atuo" will solve the problem yep, we'll add it in a future update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants