-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Conversation
There was a problem hiding this 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}")`; |
There was a problem hiding this comment.
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;
?
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. |
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. thx
There was a problem hiding this 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:
There was a problem hiding this 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 👍
This was part of the design system that we didnt do yet. #8185
From the design:
And here's the before and after, with this PR:
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!