Media Library styling broken

Created on 18 September 2024, 2 months ago
Updated 19 September 2024, 2 months ago

Problem/Motivation

There are numerous problems with the CSS introduced in #3249388: Styling update β†’ for media library.

A lot of the styles do not apply because the classes media-library-views-form and media-library-item--grid is missing from the media browser view. This results in a broken UI.

Media widgets

The class media-library-selection is missing. None of the styles apply except the button styles which causes the buttons to disappear into the upper right page corner effectively making it impossible to remove or edit media items.

Media library

  • The class media-library-views-form is missing. All of the styles under .view-media-library do not apply at all to the media library either at /admin/content/media-grid, layout builder, or ckeditor embed media button.
  • The media library item name (label) is a plain div with no classes to allow styling. This is inherited from the stable 9 template.
  • There are numerous spacing issues within the cards.
  • There are no gutters between cards.
  • Images in the cards are not centered.

Media Library Modal

  • The modal is tiny
  • The media types tabs are unstyled

Remaining tasks

  • Modal size
  • Media type tabs
πŸ› Bug report
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States rhovland Oregon

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024