Open jmsmkn opened 1 year ago
Why not increase the max width of the container to for example 1400 px?
That just kicks the can down the road. We have plenty of tables that do not fit into 1400px and not all users have viewports that wide (e.g. mobile, tablets, using windows side-by-side). It needs a fundamental fix. Maybe something like https://github.com/Amphiluke/floating-scroll.
You also loose the ability to sort on the hidden columns if they end up in the fold, e.g. for visibility here
I feel the need to comment with these pictures to comment on "kick the can down the road" comment:
vs
From what I heard/read about design, data tables designs between mobile vs desktop layouts and interactions are squarely opposed to each other. So this is not a trivial thing to solve at all. Sort of this: On mobile phones the general advise goes against using data tables at all while on Desktop, Excel is still the king of all applications for many users.
Advantage of phones is that they can naturally drag left and right, same with using a trackpad on a computer. Mouse users still have to scroll all the way down.
Implemented this in:
Using handy-scroll. However, it's ramifications are to large to be tested/reviewed in a cooldown week.
It's behind the blue cross. Both leaderboard and admin panels. Maybe limit wide tables to 10 rows and then use just the bootstrap responsive. Also allow word breaks?