gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
10 stars 6 forks source link

Widget size #176

Open MortenHofft opened 3 years ago

MortenHofft commented 3 years ago

Currently you have to specify a size of the widget (e.g. occurrence search). Which is useful. But it would be equally useful to have the option to not do so, and probably more so.

I have noticed other libraries also have this behaviour where you need to specify a height, and it is really inconvenient. It can easily make the whole widget feel like an iframe. Alternatively it puts a lot of constraints and how it can be used/styled. Either way you easily end up with a lot of scrollbars.

I'm not even sure what the desired outcome is at this point, but believe it is worth exploring as the current styling makes it difficult to use the widgets as anything else than full page.

This is related to https://github.com/gbif/hosted-portals/issues/157