Matico-Platform / matico

An open source platform for building civic tech and geospatial apps
https://matico.app
46 stars 3 forks source link

Allow layouts to be responsive with defined breakpoints #85

Open stuartlynn opened 2 years ago

stuartlynn commented 2 years ago

Allow different layouts to be used at different breakpoints. Sample API containers could look like the following where L,M and S are three defined breakpoints.

{
  layout:{
   L: Grid:{},
   M: Linear:{}
   S: Linear:{}
},
panes: []

Add some sane defaults for this. Allow users to configure breakpoints at the top application level but similarly have sane defaults

nofurtherinformation commented 2 years ago

From #111

Responsive design changes layout and sizing choices based on the size of the screen viewing the context. A mulit-column layout might shifting into a single column layout, font sizes change, tooltips change to modals, etc.

Most of the layout sizing parameters will need the option for breakpoint-based responsive parameters. Here's what we'll need to do: