I managed to fix some small CSS issues for gramps-js.
Switching to logical instead of absolute values is pretty helpful, I tried doing it manually, I now need to try and do it with the code and regenerate the website (or the docker).
This is an explanation about using logical CSS values: