Closed Bug 1625913 Opened 4 years ago Closed 4 years ago

Card image gets cut off for some widths

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 77
Iteration:
76.2 - Mar 23 - Apr 5
Tracking Status
firefox76 --- verified
firefox77 --- verified

People

(Reporter: andreio, Assigned: emcminn)

References

Details

Attachments

(8 files, 1 obsolete file)

I think we want the background-size to be cover instead.

Comment on attachment 9136738 [details]
card.png

This issue is also reproduced for: 
- Stay Alert to Data Branches
- Create and Store Strong Passwords
Assignee: nobody → emcminn
Status: NEW → ASSIGNED
Iteration: --- → 76.2 - Mar 23 - Apr 5
Priority: -- → P1
Pushed by emcminn@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/06d53e1ac917
Fix for onboarding card image widths in smaller resolutions r=andreio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76

I have verified this issue using Firefox Nightly 76.0a1 (Build ID 20200401212659) on Windows 10x64, Mac OS 10.15 and Linux Ubuntu 18.04 and it is still reproducible in about:newtab page.
Please see attached screenshot.

Attached image cards cut.png
Assignee: emcminn → vvirlics
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: vvirlics → emcminn
Pushed by emcminn@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3203a945e08f
Added fix for card images to activity-stream.css r=andreio
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 76 → Firefox 77

Hi Valentina, would you mind verifying this for us again? The fix should now cover both about:welcome and about:newtab. We're going to request uplift once it's been verified. Thanks!

Flags: needinfo?(vvirlics)

I have verified this using Firefox Nightly 77.0a1 (Build ID 20200407093520) on Windows 10 x64 and observed the following:

  • about:welcome - Stay Alert to Data Breaches card image is not cut;
  • about:newtab
    • Stay Alert to Data Breaches card image is not cut;
    • Instantly Send Yourself Tabs card image is not cut;
    • Create and Store Strong Passwords card image is cut at full-screen browser dim (attaching a screenshot)
Flags: needinfo?(vvirlics)

Based on the above comment I am changing the status to Verified.

Status: RESOLVED → VERIFIED

So after some investigation by Andrei, we're going to re-write this patch a bit. Turns out the card image for Lockwise (create and store strong passwords) has slightly different dimensions than the others, which is causing this issue. We're going to go back to the spec and change how we're handling the image background/sizing to make sure that images of any size are placed correctly.

Attachment #9139303 - Attachment is obsolete: true

The patch landed in nightly and beta is affected.
:emcminn, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcminn)
Attached image strng pass.png

As I mentioned in comment 13, the "Lockwise" card is still cut.

- Create and Store Strong Passwords card image is cut at full-screen browser dim (attaching a screenshot)

Based in comment 15 and comment 13, I'll reopen this issue.

Status: VERIFIED → REOPENED
Resolution: FIXED → ---

(In reply to Valentina Virlics [:vvalentina], Ecosystem QA from comment #19)

Created attachment 9140328 [details]
strng pass.png

As I mentioned in comment 13, the "Lockwise" card is still cut.

- Create and Store Strong Passwords card image is cut at full-screen browser dim (attaching a screenshot)

Based in comment 15 and comment 13, I'll reopen this issue.

We have a new patch coming, just in review now :)

Flags: needinfo?(emcminn)
Pushed by emcminn@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cc092011bfe6
Background size and padding fix for Onboarding cards r=andreio

Hi again Valentina :P Hopefully this is the last time this needs verification. We're going to request uplift once it's been verified. Thanks!

Flags: needinfo?(vvirlics)
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

I have verified that the issue is no longer reproducible on Firefox Nightly 77.0a1 Build ID 20200415215103 using Win 10, Linux Ubuntu 18.04 and Mac 10.15.
The "Create and Store Strong Passwords" card image is no longer cut.

Status: RESOLVED → VERIFIED
Flags: needinfo?(vvirlics)

Comment on attachment 9139533 [details]
Bug 1625913 - Background size and padding fix for Onboarding cards

Beta/Release Uplift Approval Request

  • User impact if declined: Users will see incorrectly cut off card images at some screen widths.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small CSS change that affects only the onboarding cards in about:newtab and about:welcome.
  • String changes made/needed: none
Attachment #9139533 - Flags: approval-mozilla-beta?

Does the patch from comment 11 also need uplifting?

Flags: needinfo?(emcminn)

(In reply to Ryan VanderMeulen [:RyanVM] from comment #26)

Does the patch from comment 11 also need uplifting?

Nope, that one will actually now be obsolete.

Flags: needinfo?(emcminn)

Comment on attachment 9137830 [details]
Bug 1625913 - Added fix for card images to activity-stream.css

Right, but that patch won't graft cleanly if we don't take the other one first. I'm approving both under that assumption, but feel free to yell loudly if I'm misunderstanding.

Attachment #9137830 - Flags: approval-mozilla-beta+
Attachment #9139533 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

(In reply to Ryan VanderMeulen [:RyanVM] from comment #28)

Comment on attachment 9137830 [details]
Bug 1625913 - Added fix for card images to activity-stream.css

Right, but that patch won't graft cleanly if we don't take the other one first. I'm approving both under that assumption, but feel free to yell loudly if I'm misunderstanding.

Oh, yes of course you're right. I'm going to blame Friday.

I have verified that this is no longer reproducible on Firefox Beta 76.0b6 (Build ID 20200420031429) using Windows 10 x64, Linux Ubuntu 18.04 and Mac OS 10.15.
No image of any cards from about:newtab - Onboarding Triplets, gets cut.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: