Media library "Insert Selected" can still become impossible to scroll to

Created on 11 July 2025, about 19 hours ago

Problem/Motivation

Followup to a followup

Media library "Insert Selected" can become impossible to scroll to

Steps to reproduce

We have this problem when using the medial library from within a modal (via layout_builder_iframe_modal). My screen has to be gigantic before I can see the "Insert Selected" button.

Proposed resolution

The issue seems to more or less stem from the choce of magic number in

.ui-dialog.media-library-widget-modal.ui-widget #drupal-modal {
  height: 78% !important;
  max-height: none !important;
}

Maybe that could be set via js based on the true heights of everything.

But that's probably more than we need. Why don't we just allow scrolling when there's overflow.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024