Distorted media library grid when accessed as non-admin user

Created on 6 May 2021, over 3 years ago
Updated 28 November 2024, 28 days ago

Problem/Motivation

Media library does not display grid properly when accessed as non-admin user

Steps to reproduce

Using Drupal core 9.1.7
Theme: Eclipse multipurpose theme

  1. Enable Media and Media library modules
  2. Add a field to a content type as Media (Entity reference)
  3. Setup form display to show this field as Media library
  4. Add content using this field
  5. Click Add media

Media will be displayed as grid. However, if you are adding content as a non-admin, existing media items are displayed one item in a row, while when the content is added as admin, the items are displayed nicely formatted in a grid.

Inspected in a browser console errors are reported when logged on as non-admin user. No errors are reported when logged on as admin user.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

media system

Created by

πŸ‡ΊπŸ‡ΈUnited States eugeneak

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    I tested this on a fresh install of Umami on Drupal 11.x and was not able to reproduce the problem. Is this perhaps a problem with the Eclipse multipurpose theme? Is this reproducible on Drupal 10.4x to Drupal 11.x?

    Since we need more information to move forward with this issue, I am setting the status to Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024