Problem/Motivation

Using Balzy module with Gin theme, producing media image rendering issue. Due to conflict in css, image is visually hidden in media gallery with grid format.

Steps to reproduce

  • Enable Blazy module with Gin admin theme
  • Visit: /admin/content/media-grid

issue

Proposed resolution

I see, Blazy has added conflict css with bootstrap with is giving issue with GIn theme

/** Fix for conflict with Bootstrap CSS if not using aspect ratio. */
.blazy .media {
  display: block;
  position: relative; //This css os conflicting with the Gin theme, added to fix conflict for Bootstrap css
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vinitk created an issue. See original summary.

vinitk’s picture

Updated css to fix conflict with Gin theme.
Before
issue
After
issue

gausarts’s picture

Category: Bug report » Support request
Status: Active » Needs review

Thank you.

IMHO, supporting or playing nice with themes other than the core default one is more a support or feature than a bug. Otherwise considering thousand themes would be a terrible work for any projects :)

Also I would not recommend letting Blazy enter admin pages for reasons like this. Blazy is crafted as a frontend module.

It has even an option to disable its own backend stylings at Blazy UI, leaving it without styles at all.

Unless it is elaborately targeted for admin pages like Slick Browser where it is responsible to address some compatibility with some major themes.

As noted in the doc comment, that CSS rule is required to play nice with a frontend theme like Bootstrap. If gone, it might introduce such compatibility issue.

However I just checked, the conflict is "position: relative" so it is the only one to be removed. The other rule is required.

I haven't rechecked any potential regressions with that change, so I am leaving it for others till I can manage to get back to it.

Feel free to update your patch as noted above for reviews.

vinitk’s picture

@gausarts yes.. removing only "position: relative" will work. Adding the updated patch.

djsagar’s picture

Just re-rolled the patch.

  • gausarts committed 9677d0c on 8.x-2.x authored by djsagar
    Issue #3285374 by vinitk, djsagar: Blazy module hiding media gallery...
gausarts’s picture

Assigned: vinitk » Unassigned
Status: Needs review » Fixed

I don't know if this would have by-product issues.

Feel free to re-open if any.
Committed. Thank you for contribution and patience.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

esteban.arias’s picture

This issue is still happening.

AgathaCrystal’s picture

FileSize
388 bytes

First time creating a patch - I tested it manually on d10 and d9, but I couldn't figure out, how to properly test it.

Edit: This patch only works with the standard color theme.