This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ccdceb7f-0fb7-4d83-b418-02441ebdc6d6 XWIKI-23332 Open

The width of the required rights modal varies depending on the displayed rights

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-6e4c9c12-6181-48f5-94ee-b205c80937c6 Michael Hamann created this issue on 24/Jun/25 14:51
 
Summary: The width of the required rights modal varies depending on the displayed rights
Issue Type: cid:jira-generated-image-avatar-ccdceb7f-0fb7-4d83-b418-02441ebdc6d6 Bug
Affects Versions: 17.4.0
Assignee: Unassigned
Components: Security - Required Rights
Created: 24/Jun/25 14:51
Priority: cid:jira-generated-image-static-major-5d78516b-9bac-4773-8db9-80fe28a174ff Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Create a page with an HTML macro with wiki=true.
  2. Go to the information tab
  3. Click on "Review required rights"
  4. 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:

  1. As shown in the reproduction steps, the width is not always the same.
  2. 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.

 
 

1 update

 
cid:jira-generated-image-avatar-6e4c9c12-6181-48f5-94ee-b205c80937c6 Changes by Michael Hamann on 24/Jun/25 14:51
 
Assignee: Michael Hamann