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

report: full bleed image thumbnails #9238

Merged
merged 8 commits into from
Jul 20, 2019
Merged

report: full bleed image thumbnails #9238

merged 8 commits into from
Jul 20, 2019

Conversation

paulirish
Copy link
Member

This was part of the design system that we didnt do yet. #8185

From the design:
image

And here's the before and after, with this PR:
image
image

The table actually gets shorter due to how the padding on these thumbnails was working before. A win for density and a nice visual improvement, too!

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like the full size 👍

const strValue = details;
element.src = strValue;
element.style.backgroundImage = `url("${strValue}")`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any particular reason for background image instead of leaving as image with object-fit: cover;?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@exterkamp points out a very good reason to keep them image elements :)

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the change, but a few nits:

I can't right click and open the images anymore 😦 , this might just be me, but that was a nice thing to have.
Screenshot from 2019-06-20 12-00-52

The aspect ratio doesn't maintain on small screens and cuts off the images:
image

Mobile view:
image

@paulirish
Copy link
Member Author

I can't right click and open the images anymore 😦 , this might just be me, but that was a nice thing to have.

fixed.

@patrickhulce
Copy link
Collaborator

I think the tests might need some love after the move back to img :)

@@ -132,6 +132,7 @@
--stackpack-padding-horizontal: 10px;
--sticky-header-background-color: var(--report-background-color);
--table-higlight-background-color: hsla(0, 0%, 75%, 0.1);
--image-preview-size: 48px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in order

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. thx

@connorjclark connorjclark mentioned this pull request Jul 10, 2019
55 tasks
Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM all nits addressed!

Some other things I noticed that are out of scope of this PR, but def report things:

  • The word wrap messes with img spacing now more obviously in narrow tables (notice how the bottom images are full bleed but the others aren't)
    image

  • Mobile doesn't scroll horizontally? It cuts off some table...
    image

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks all good and merges well with master, not sure what happened here 👍

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

Successfully merging this pull request may close these issues.

6 participants