Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Report Site Issue" flow shows a preview of the auto-captured screenshot, but it's missing the top and bottom and there's no way to see the whole thing #3816

Open
dholbert opened this issue May 1, 2024 · 0 comments

Comments

@dholbert
Copy link

dholbert commented May 1, 2024

STR:

  1. While holding your phone in portrait orientation, use Firefox Nightly on Android's "Report Site Issue" menu-option.
  2. Click through the process until you get to the part that shows you a screenshot that was automatically captured of the site that you were on.

EXPECTED RESULTS:
I should see (or be able to tap a button to see) the full screenshot that's going to be included in my webcompat report.

ACTUAL RESULTS:
The webcompat.com form only shows you a cropped portion of the screenshot -- just the center -- and as far as I can tell, there's no way to see the full screenshot.

Here's what this looks like right now -- the previewed screenshot that we show to users is the box in the middle here:
image

Poking in devtools, the element that paints the screenshot-preview looks like this (I've snipped out the data URI for brevity):

<div
  class="form-upload form-element js-image-upload js-Form-group"
  style="'background: url("data:image/jpeg;base64,[...SNIP...]") center center / cover no-repeat;'>

The background data URI is a base64-encoded version of the locally-captured screenshot; and the "cover" keyword at the end there is what causes the image to be cropped. If we instead were to use contain, then the user would at least see the full screenshot (though it would be scaled down, which is also not-great, but possibly a step in the right direction of giving them an idea of what-was-actually-captured).

I'm not a UX designer but I imagine it'd be best to show some sort of scaled-down (not cropped) version of the screenshot, possibly with a button to let the user optionally see a popup with a larger version of the screenshot (maybe not quite fullscreen to avoid covering up the whole submission form, but nearly-fullscreen?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant