Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). leaflet 10.4.5 Minor update available for module leaflet (10.4.5). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2).

Media Library Modal Dimensions adds width and height settings to every Media Library widget so the modal dialog can be sized to the content it displays — per field, without custom JavaScript or global theme overrides.

Some Media Library fields benefit from a wider or taller picker (image galleries, video browsers) while others are fine at the core defaults. This module lets each field pick its own.

Features

  • Per-field control of the Media Library modal's width and height.
  • Settings exposed through Drupal core's existing widget settings UI — no new admin pages, no custom routes, no permissions to manage.
  • Accepts percentages and pixel sizes (integer or decimal) plus auto
  • Forward-compatible wrapper pattern that survives expected core refactors of MediaLibraryWidget (see core issue #3127867).
  • Works with any field on any entity type that uses the Media Library widget — content types, paragraphs, custom entities.

Installation

Install as you would normally install a contributed Drupal module. No additional configuration step is required after enabling — the new settings appear automatically on every Media Library widget.

Configuration

  1. Go to Structure → Content types → [your content type] → Manage form display (or the equivalent screen for any entity that uses a Media Library widget).
  2. Click the gear icon next to a field that uses the Media library widget.
  3. Set Media Library dialog width and/or Media Library dialog height to one of:
    • A percentage — for example 75% or 95%
    • A pixel size — for example 900px or 1200px
    • auto
  4. Click Update, then save the form display.

Leave either field empty to keep Drupal core's default of 75%.

Activity

Total releases
2
First release
Apr 2026
Latest release
3 hours ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Apr 20, 2026
1.0.x-dev Dev Apr 20, 2026