Problem/Motivation
Currently the MediaLibraryWidget uses a static call to \Drupal\media_library\MediaLibraryUiBuilder::dialogOptions
which means that altering these dimensions is really hard.
Proposed resolution
By just using the media_library.ui_builder instead of the static call a developer can influence the dimensions by overriding the service.
I know the service says:
* This service is an internal part of the modal media library dialog and
* does not provide any extension points.
But sheesh how un-Drupal can you get and there doesn't seem to be another way to alter these options either.
Remaining tasks
Decide if this is the best way to do this
User interface changes
None
API changes
Constructor for Drupal\media_library\Plugin\CKEditorPlugin\DrupalMediaLibrary
updated to accept and eventually require the media_library.ui_builder
service as an argument.
Data model changes
None
Release notes snippet
TBD