Steps to reproduce:
- Create a page with an HTML macro with wiki=true.
- Go to the information tab
- Click on "Review required rights"
- Click "Enforce required rights"
Expected result: The width of the modal doesn't change. Actual result: The width of the modal changes. This could also happen in general when the names of rights are translated and widths of the translations are larger than the English text. It was intentional to adapt the width of the dialog to the displayed rights, but there are two issues:
- As shown in the reproduction steps, the width is not always the same.
- If the text gets a lot wider, it might not fit on small screens. For small screens, there is the vertical layout, but it is only triggered below a fixed width and that width might not be enough to show the rights in horizontal layout.
Instead of relying on a fixed width, the switch between horizontal and vertical layout should depend on the actual width of the rights in the horizontal layout. Additionally, we could decide to permanently increase the width of the modal to ensure that in most cases, we use the horizontal layout. |