Media library styling breaks when using exposed filters

Created on 15 June 2021, over 4 years ago
Updated 23 July 2025, 3 months ago

Problem/Motivation

When posting the exposed filters form in the media library, the styling added by the module currently breaks. This seems to be caused by gin_lb_theme_suggestions_alter() not adding the same suggestions for the views.ajax route. We probably need a better way to detect the media library for this route.

Steps to reproduce

Open the media library.
Apply an exposed filter for the view.
Check the suggestions for elements lik form fields an buttons.

Proposed resolution

We could add a check for the media library opener ID in the request parameters. This is only set for the media library.

Remaining tasks

Create patch
Review
Commit

User interface changes

The gin_lb templates should be applied again when using media library exposed filters.

API changes

-

Data model changes

-

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands seanB Netherlands

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.

Production build 0.71.5 2024