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

Created on 21 August 2023, 10 months ago
Updated 28 May 2024, about 1 month ago

Problem/Motivation

On some pages where we are using acquia_dam with site studio we are noticing that it's impossible to scroll to the bottom of the media library modal making it very difficult to select media for the component.

The problematic code appears to be
https://git.drupalcode.org/project/acquia_dam/-/blob/1.0.x/css/media-lib...

.ui-dialog.media-library-widget-modal.ui-widget {
  max-width: 100%;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  margin: 0 !important;
}

which is making the modal bigger then the screen of the user.

A simple change to `height: 100vh;` should accomplish the goal of making the modal the full size of the page while also making it impossible to be bigger then the screen.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ctrlADel North Carolina, USA

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

Comments & Activities

Production build 0.69.0 2024