- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - First commit to issue fork.
- πΊπΈUnited States aasarava San Diego
Rerolled patch to work with Drupal 10.3.x.
It is currently not possible to change the width and height of the media library modal. The values are hard-coded (in MediaLibraryUiBuilder::getDialogOptions()) and not changeable.
In #3127867-7: MediaLibraryWidget should use the media_library.ui_builder service when fetching modal dialog options β , @seanB said:
I've had more questions about changing the width and height of the modal. We have discussed things like an alter hook before but since the class is also used in a lot of javascript we should not make it easy for people to change this.
As a first step I can see making this method non-static and fetch the options via the service is a good step to help with this. Calling the static method on the class is definitely not developer friendly. I guess if we make the width and height configurable this would even help other people from not needing to override the service as well, but that can be a followup.
This is that follow-up.
N/A
Make the dimensions configurable in some way -- ideally as settings of the Media Library field widget.
Write a patch with tests
Review and commit
TBD; possibly a couple of new configuration options for the Media Library field widget.
None.
The Media Library field widget may get a couple of new settings.
TBD
Needs work
11.0 π₯
Last updated
Makes Drupal easier to use. Preferred over UX, D7UX, etc.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Rerolled patch to work with Drupal 10.3.x.