Foundation.mozilla.org: Hero image isn't scaling

Created on 27 Nov 2018  路  9Comments  路  Source: mozilla/foundation.mozilla.org

Related to https://github.com/mozilla/foundation.mozilla.org/issues/2261

@Pomax can you please recap what you think the problem here is?

Desktop looks good:
screen shot 2018-11-27 at 10 39 33 am

But mobile is cut off:
image

bug engineering

All 9 comments

It seems like this is a template issue, where a different version of the image is being fetched for mobile.

@kristinashu how should the banner image look like on mobile? Full width with no left/right margin?

Right, it should be full width with no side margin.

So the same margin as we have on the live site, just without cropping the image:

image

Thanks!

@youriwims refer to the comp above ^ for now. We will get you set up with Abstract and Sketch tomorrow.

Thanks for the image @mmmavis & @kristinashu鈥擨 was able to fix it.

Oooh is this ticket possibly related to this one #1485?? Is #1485 still relevant?

Yes, it's definitely related. For this image, I'm fixing the scaling/cropping issue, consolidating the code, and using best practice responsiveness.

This has been fixed. See #2425 & #2632.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanmoo picture alanmoo  路  3Comments

xmatthewx picture xmatthewx  路  4Comments

kristinashu picture kristinashu  路  3Comments

benhohner picture benhohner  路  4Comments

kristinashu picture kristinashu  路  4Comments