Grid size based on content #606
Replies: 3 comments
-
Hi @Techn1x! I would test it on a more complicated layout, the one you have is very basic. The most complex one is when you get pinned rows (top and bottom) and columns (left and right). Then things become nasty! Thanks for sharing example! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback! Out of curiousity I gave it a go with pinned rows and columns, it still seems to work just as nice - though if you try to resize the pinned columns, it seems the horizontal scrollbar appears Either way, happy for you to close this issue if you like - I just wanted to share in case others are looking for the same kind of thing, or if there was appetite for it to be added to core Screen.Recording.2024-10-16.at.5.43.18.pm.mov |
Beta Was this translation helpful? Give feedback.
-
Looks cool, I wanna try it myself later this week too, probably we'll make a small plugin to see how it fits. Converted to discussion "show and tell", seems it's a good start. |
Beta Was this translation helpful? Give feedback.
-
Have been implementing this library to help create a grid for importing records, I noticed the container has a fixed / static min-height 300px by default (as the guides mention) as well as a 100% width
I wanted to share a slightly different approach to the grid sizing, where instead of the content growing to meet the fixed container that never changes, the container grows with the content (up to a maximum size, if desired)
The width is easily taken care of with
width: max-content
- it will even let you expand that last column rightwards if neededThe height needs some more complicated CSS to undo all the cascading "height: 100%" values everywhere
Screen.Recording.2024-10-14.at.2.06.48.pm.mov
This of works in my simple scenario, but likely breaks things for more complicated grid's using features that I am not. One drawback is the minor flash on the right, as the grid seems to accomodate the scrollbar size for a split second
Is this something that should be implemented, maybe as a different theme or plugin or layout option for the grid?
Beta Was this translation helpful? Give feedback.
All reactions