Ouranosinc / Magpie

AuthN/AuthZ services
https://pavics-magpie.readthedocs.io
Apache License 2.0
1 stars 5 forks source link

[Feature] Make GeoServer permission page clearer that there are more permissions to set, currently this is misleading #604

Open tlvu opened 4 months ago

tlvu commented 4 months ago

Is your feature request related to a problem? Please describe. When upgrading to birdhouse-deploy 1.37.0 (https://github.com/bird-house/birdhouse-deploy/pull/348), we have to enable more permissions for GeoServer.

However the permission page make it looks like what we see is all there is, but in fact there are a lot more and we have to scroll horizontally, but there are no visible indication that we have to scroll horizontally.

Screenshot from 2024-04-13 13-09-22

Describe the solution you'd like Display all the permissions at once or make the scroll bar always appear.

Currently the scroll bar only appear when we mouse over the scroll bar region, which is very misleading. When we simply select an option (ex: "Allow, Recursive"), the scroll bar do not even appear. We have to accidentally mouse over the tiny scroll bar region for the scroll bar to appear.

tlvu commented 4 months ago

FYI @mishaschwartz

fmigneault commented 4 months ago

The scrollbar visibility is a browser-specific configuration. https://superuser.com/questions/1720362/firefox-scroll-bar-disappearing https://www.reddit.com/r/reactjs/comments/x0tikw/can_a_website_force_to_always_show_scrollbars_or/

There are a few CSS tricks here and there, but they are browser-specific as well. For example: https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbar#browser_compatibility We can give it a try, but not sure about the result across browsers/OS.

I'm not sure if there is an easy alternative either without scrollbar visibility tricks. The thing about this scrollbar is that it is auto applied by the browser if overflow is detected. It seems like detecting this to add some indicator dynamically might be really complicated.