Hi,

I just stumbled over a bug in views. I created a view with an image field, that is formatted as a responsive image. The corresponding preset uses "Select multiple image styles and use the sizes attribute." with the size attribute "(min-width: 990px) 190px, 115px".

If I now rewrite the image field in the view to, for example, {{ field_image}} <div class='overlay'></div>, it results in the size attribute being written as "990px) 190px, 115px". So the "min-width" gets trimmed.

Didn't find an existing issue, so I thought i let you know.

Comments

Belshi created an issue. See original summary.

Belshi’s picture

Issue summary: View changes
salvor_hardin’s picture

I confirm this bug : this is the second relative to Views and Responsive Image. The first has a fix : https://www.drupal.org/node/2687479
Any idea for this one ?

thanks

salvor_hardin’s picture

StatusFileSize
new40.31 KB
salvor_hardin’s picture

Status: Active » Fixed

Solved in 8.2.2

Status: Fixed » Closed (fixed)

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

leovw’s picture

Hi - This doesn't seem to be working with Drupal 8.2.5. Attached is a screenshot showing the problem