[Grid] add support for `only=small screen`
See original GitHub issueSemantic/Fomantic UI has breakpoints for small screens (https://fomantic-ui.com/elements/container.html) and there is support for device visibility breakpoints (https://fomantic-ui.com/collections/grid.html#device-visibility). But at the same point there is no small screen only
😦
It will be great to have a separate option to restrict visibility for small screens.
Original request: https://github.com/Semantic-Org/Semantic-UI-React/issues/3991
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
How can I wrap grid elements on small screen sizes? [closed]
Hmmm... let's try. You have to use media queries. Here you can set rules for a specific screen resolution, or whatever you want....
Read more >Basic concepts of grid layout - CSS: Cascading Style Sheets
Grids can be used to lay out major page areas or small user interface elements. This article introduces the CSS Grid Layout and...
Read more >Bootstrap Grid - Small Devices - W3Schools
Bootstrap Grid Example: Small Devices ... Assume we have a simple layout with two columns. We want the columns to be split 25%/75%...
Read more >Set columns depending on screen size - OpenClassrooms
"Repeat as many columns that will fit on a screen. Each column should be a minimum of 100px wide and a maximum of...
Read more >A CSS Grid Based Layout. A step-by-step tutorial with all…
In this step we add the following: on small screens: display the grid in a single column; on medium screens: display the grid...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, i think, i understood now 😄
However, while we are at it, why don’t we move this logic out of the the grid and make it globally available, so it can be used by any component? I personally use this ever since https://github.com/Semantic-Org/Semantic-UI/issues/1114#issuecomment-201057438
and already commented in the helper class thread at https://github.com/fomantic/Fomantic-UI/issues/22#issuecomment-429109342
That addional “small screen” could then be added globally @fomantic/admins ?
We already have a computer breakpoint at 992px, we just need a class that is only computer, not computer and large monitor or widescreen. Bootstrap has the “large device” class, but we go straight from “medium device” to “extra large device” in our grid, or you go from medium to “large and extra large” using the computer breakpoint.
Here is my use-case. I have a grid of tables that I rearrange to be responsive based on the screen width, so I might be 3x2 on the large monitor and widescreen, but 2x3 on the small monitor and tablet screens. This is not currently possible using the provided grid size classes, so I have had to do it manually.