You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bootstrap's grid system is a super nice way to create responsive layouts that adapt to the viewport size. Maybe we could provide some functions or a prefab component that will make adding the classes and managing rows easy.
Here's an idea of a possible interface:
Grid::Col could apply the specified classes to the components given as the its first argument and Grid::EndRow could act like std::endl and start adding components to a new row if more are added. The Grid::NoWrap argument would add these classes directly to the components without wrapping in a div.
The example I gave should make the simulation environment take up 2/3's of the row unless the viewport shrinks under medium width (tablet size) then it and the controls should take up full width. Similar for the second row except there are two levels at which components resize.
It's still a lot work to come up with a harmonious layout and there's no way around that, but this would make it a lot easier than doing all the SetAttrs yourself
The text was updated successfully, but these errors were encountered:
Bootstrap's grid system is a super nice way to create responsive layouts that adapt to the viewport size. Maybe we could provide some functions or a prefab component that will make adding the classes and managing rows easy.
Here's an idea of a possible interface:
Grid::Col
could apply the specified classes to the components given as the its first argument andGrid::EndRow
could act likestd::endl
and start adding components to a new row if more are added. TheGrid::NoWrap
argument would add these classes directly to the components without wrapping in a div.The example I gave should make the simulation environment take up 2/3's of the row unless the viewport shrinks under medium width (tablet size) then it and the controls should take up full width. Similar for the second row except there are two levels at which components resize.
It's still a lot work to come up with a harmonious layout and there's no way around that, but this would make it a lot easier than doing all the
SetAttr
s yourselfThe text was updated successfully, but these errors were encountered: