-
Notifications
You must be signed in to change notification settings - Fork 19
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
Long table names overlap in small devices mode #13
Comments
Hi Thomas, thanks for the report. Let me see if I can help you sharing some details. The overlapping occurs because the title is absolute positioned on the left, as a Some things you can try:
I updated the plunker with the |
Hi André, thanks for your response. I tried a little with the relative position, but relative positioning won't let you separate the heading from the column content. Unfortunately I am not a css expert (thats why I'm trying to use a library). I wonder if this is even possible with the CSS approach done in the responsive table plugin. Thanks again, |
I'm not an CSS expert myself, but I doubt a general solution can be achieved with the current CSS codebase. A library could do this with JS, perhaps even as a plugin to this very one. I agree with you that this manual calculation is tricky, considering that if you change the title at a later time you need to remember to update this setting. As I believe this should not be very common (having very long titles, which is something I avoid), I'd would do something with media queries and em units: @media (max-width: 800px) {
.cell--2lines {
min-height: 2.5em;
}
.cell--3lines {
min-height: 3.5em;
}
} You can even experiment with What do you think? We can leave this issue open anyways in case anyone gets interested having a take at this. |
Added a tag to make the box scrollable if the length limit is exceeded.
Long table names overlap in small devices mode awerlang#13
Hi,
I have a table with rather long table names. Now when viewing these on small devices, the header lines break to multiple rows, but the table itself won't increase the row height.
I have created a plunker to show it:
http://plnkr.co/edit/IsRRJEP2yBhRZKiS4yYH
Thanks a lot,
Thomas
The text was updated successfully, but these errors were encountered: