Problem/Motivation
Modal is full width on Claro when using the experimental modal widget, see screenshot

See #3191527: Dialog width and positioning issues in Claro for the core issue that might someday fix this, credit @bnjmnm for looking into it
Original patch posted to #3028468: Use Drupal dialog instead of directly using jQuery dialog for add modal, but this needs a new issue so created this. Patch credit @kvantstudio
Steps to reproduce
Do a clean install of D9 Umami
set Claro as the admin theme
Add a prargraph field and set the form widget to use the experimental modal version
Add a paragraph to a node
Proposed resolution
Not make the modal full width.
Remaining tasks
Decide if this is something that needs to be fixed in Paragraphs or in core.
User interface changes
The modal is no longer full width.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | screenshot2.PNG | 12.85 KB | gaurav-mathur |
| #7 | screenshot1.PNG | 11.97 KB | gaurav-mathur |
| #2 | Screenshot_20210914_113249.png | 71.15 KB | taniachque |
| #2 | Screenshot_20210914_113817.png | 82.92 KB | taniachque |
| paragraphs-use-drupal-dialog-3028468-27.patch | 451 bytes | lendude |
Comments
Comment #2
taniachque commentedI could reproduce the problem and applying the patch the problem of full width was solved.
However, with the patch, the modal was not draggable anymore in Claro, Bartik and Seven. We will need to find another fix that does not break this.
Comment #3
mathilde_dumond commentedComment #4
idebr commentedThis issue was fixed in Drupal Core, see #3191527: Dialog width and positioning issues in Claro
Comment #5
idebr commentedThe original issue was fixed in Drupal Core. However, the patch fixes a different issue where the modal does not resize properly for large lists.
Comment #6
gaurav-mathur commentedComment #7
gaurav-mathur commentedIts working fine without apply the patch, its look good for me,
I am tested in drupal 9.4.5,with Claro theme enabled as an admin theme.
(Added a paragraph type with a date field in article)
See Refer screenshot.
Comment #8
norman.lolYeah, with a long list of paragraphs and the screenlock you can't scroll in Claro. The patch fixes it.
Comment #10
berdirCommitted.