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

table Viewports #90

Closed
bestisben-xyz opened this issue Dec 23, 2021 · 4 comments
Closed

table Viewports #90

bestisben-xyz opened this issue Dec 23, 2021 · 4 comments

Comments

@bestisben-xyz
Copy link

bestisben-xyz commented Dec 23, 2021

Is your feature request related to a problem? Please describe.
First thanks alot for providing the css framework, it really help me a lot and really helpful to a beginner^^
However when I wanna to use the table Components, I find out it really not friendly with small screen.
Describe the solution you'd like

image
When the table with few data is fine.

image
When the table with lots of info then the screen become "unclean"

image
I wish the table would be possible display in this layout with css only

@Spiderpig86
Copy link
Owner

Hi!

Thanks for the suggestion! This is true that tables can get a bit messy with lots of elements, especially with smaller devices. I don't necessarily agree with moving all columns to rows since that would not really be a good UI experience as we would have a whole set of columns for each row. What I think would be better would be to add a new table wrapper class that allows for displaying many columns. It would appear like this:

image

@bestisben-xyz
Copy link
Author

bestisben-xyz commented Jan 2, 2022

Hi,
Thanks for reply, yeah I agree with you that will be better, wrapper class will not extend outside the bound right?
This is good I think:
image

this is bad I think:
image

@Spiderpig86
Copy link
Owner

Yes the wrapper class should take the width of the parent div. However if the column widths inside the table exceed the width of the parent, the horizontal overflow will appear.

@Spiderpig86
Copy link
Owner

Added in 0.7.0, closing.

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

2 participants