Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.3.13 Minor update available for module search_api_solr (4.3.13). Search API Solr 4.3.12 Minor update available for module search_api_solr (4.3.12). Google API PHP Client 8.x-4.8 Minor update available for module google_api_client (8.x-4.8). Google API PHP Client 8.x-4.7 Minor update available for module google_api_client (8.x-4.7). Burndown 1.0.69 Minor update available for module burndown (1.0.69). SSO Connector 1.0.2 Minor update available for module sso_connector (1.0.2). smart 404 1.1.3 Minor update available for module smart_404 (1.1.3). SSO Connector Autologout 1.0.0 Initial release available for module sso_connector_autologout (1.0.0)! Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs. Commerce Order Amend Module commerce_order_amend now has official Drupal security advisory coverage.

This module allows you to customize the width and height of the Media Library modal for each individual field. This lets you optimize the modal's size to better fit the content it displays, such as wider modals for image galleries or taller ones for video browsers. These settings are conveniently available through the existing widget configuration options.

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
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

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