This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e7801d9e-9a46-4a14-ba7e-67b110a33272 XWIKI-23288 Open

Required rights modal becomes very wide when viewing analysis details

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-86a901f2-afa0-482d-8e12-799fd7fce533 Michael Hamann created this issue on 11/Jun/25 15:36
 
Summary: Required rights modal becomes very wide when viewing analysis details
Issue Type: cid:jira-generated-image-avatar-e7801d9e-9a46-4a14-ba7e-67b110a33272 Bug
Affects Versions: 17.4.0-rc-1
Assignee: Unassigned
Attachments: 2025-06-wide-required-rights-dialog.webm
Components: Security - Required Rights
Created: 11/Jun/25 15:36
Priority: cid:jira-generated-image-static-major-5d5eb100-1bc4-4058-9610-f3669755aae3 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Open a page that has scripts with long lines, for example AnnotationCode.Script
  2. Open the information tab
  3. Click the "Review required rights" button
  4. Click on "Analysis details"
  5. Click on one of the two items

Expected result:

The width of the dialog doesn't change.

Actual result:

The dialog becomes a lot wider, for the second item the width of the dialog even exceeds the screen width. See also the attached screen recording.

 
 

2 updates

 
cid:jira-generated-image-avatar-86a901f2-afa0-482d-8e12-799fd7fce533 Changes by Michael Hamann on 11/Jun/25 15:36
 
Description: *Steps to reproduce:*
# Open a page that has scripts with long lines, for example AnnotationCode.Script
# Open the information tab
# Click the "Review required rights" button
# Click on "Analysis details"
# Click on one of the two items

*Expected result:*

The width of the dialog doesn't change.

*Actual result:*

The dialog becomes a lot wider, for the second item the width of the dialog even exceeds the screen width. See also the attached screen recording.


The reason for this is that I've set the modal's {{min-width}} to {{fit-content}} in order to ensure that the four rights fit even when translated and when having the analysis summary below them (which already doesn't always fit in English and I fear in other languages it will be worse). I didn't consider that code blocks would influence this when developing this as I always tested with very short test scripts.
Assignee: Michael Hamann