Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: File Entity (fieldable files) 8.x-2.9 Minor update available for module file_entity (8.x-2.9). Release: Seven 1.1.0-beta5 New beta version released for theme seven (1.1.0-beta5). Release: Ace Code Editor 2.0.5 Minor update available for module ace_editor (2.0.5). Release: AI Agents 1.3.5 Minor update available for module ai_agents (1.3.5). Release: ECA Tamper Integration 2.0.11 Minor update available for module eca_tamper (2.0.11). Release: Bootstrap Italia 2.17.7 Minor update available for theme bootstrap_italia (2.17.7). Release: GovNL NL Design System 1.0.0 Initial release available for theme govnl_nlds (1.0.0)! Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: Menu tree 2.1.2 Module menu_tree updated after 13 months of inactivity (2.1.2).

Media Library Modal Dimensions

5 sites Security covered Drupal 11 · not 10
View on drupal.org

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%.

Depends on

Dependencies of the latest stable release

  • media_library Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

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