openforis / sepal_ui

wrapper for ipyvuetify widgets to unify the display of voila dashboards in the SEPAL plateform
https://map-app.up.railway.app
MIT License
13 stars 4 forks source link

open map buttons content as a dialog #897

Open dfguerrerom opened 1 year ago

dfguerrerom commented 1 year ago

On map_app's I have seen a bad-looking behavior when the content shrinks and stretches depending on the size of its content, this causes the content of the component to be totally unattached from the initial display point (the menu button), I think (I haven't proved it yet) that it can be solved by using a min/max-width on the displayed component but if their different contents are totally different, it could cause a bad- looking display again...

I was thinking that we can make it optional to open the content of the buttons as a dialog, in that way, some of them (especially the ones that require more space) can be displayed on a bigger screen and the others in the same way...

Bad display:

screen-capture (2).webm

@12rambau what do you think?