question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mobile responsive: 'stacked' view, shows 3 columns instead of 2 and breaks display

See original GitHub issue

Expected Behavior

The mobile view with responsive:'stacked' should render 2 columns with KEY - VALUE each taking 50% of the screen Like this screenshot https://static.brantu.com/images/content/medium/LRPZ8Vq0r-3ba5f2ddd95e5d34.png

Current Behavior

The table displays 3 columns, with this shape KEY VALUE KEY VALUE KEY VALUE and so on…

like this screenshot https://static.brantu.com/images/content/medium/3qvvul6EG-d15ab1a2d934bd36.png

Steps to Reproduce (for bugs)

  1. display any data while passing responsive:'stacked' in options, or not, it falls back to this as default anyway.

Your Environment

Tech Version
@material-ui/core ^3.9.2
MUI-datatables ^2.0.0-beta.56
React ^16.7.0
browser Chrome

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
emaciasrcommented, Nov 15, 2019

Hi again, in my case, the issue got resolved by removing the following in src/index.css

*, *:before, *:after { box-sizing: inherit; } */

Now, it looks great

image

1reaction
jimdiscommented, Apr 12, 2019

I got the same problem. Responsiveness stacked with two kolumns of key-value-pairs works down until 482px width, at which point it breaks and displays three columns at lower widths. Tested both in Chrome and Safari in responsive view.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Stack Columns in Responsive Emails - Litmus
Using CSS media queries​​ You can create two columns simply by creating a two-column table and then using classes to have the columns...
Read more >
How To Keep Columns Side-By-Side On Mobile in Divi - Ezoic
Go to your row settings of the row that has 4+ “stacked” columns. ... to make 2-3 elements appear side-by-side on mobile and...
Read more >
How to Control Responsive Column Layouts in Elementor ...
Until this week, with Elementor you were stuck with the column layout in tablet view being the same as on desktop. In a...
Read more >
How to Keep Columns on Mobile in Divi - YouTube
For links, resources and the code shown in the tutorial, head over to: https://joshhall.co/how-to-keep- columns -on- mobile -in-diviIf you're ...
Read more >
How to Keep Columns on Mobile in Divi - JoshHall.co
I found myself in a scenario where there's 2 columns in a row. However, the blurbs I wish to present 3 across on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found