-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Summary: Polish featured image #60110
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +593 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
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, thanks!
Agreed, when set. |
outline-offset: -#{$border-width}; | ||
min-height: $grid-unit-50 * 2; | ||
margin-bottom: $grid-unit-10; |
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.
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 thought what you had was fine, at 80px. |
* Polish featured image. * Address feedback. * Restore 80px. Co-authored-by: jasmussen <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: richtabor <[email protected]> Co-authored-by: jameskoster <[email protected]>
What?
Polishes the featured image component of the new summary panel, and makes it less prominent when unset. Here's a screenshot of the component in trunk:
Featured images are nice, but many posts and pages are not going to have them, or even need them. So for the unset state, it should not be quite as prominent as here. In fact, we probably want to go even smaller than what this PR does.
For now, I've pulled this down to be smaller, about the size it was before:
It still grows to a 2:1 aspect ratio when a featured image is set:
![featured image](https://private-user-images.githubusercontent.com/1204802/315965543-651a5898-b956-4225-9a97-badf632808e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTgxNDEsIm5iZiI6MTczOTQ5Nzg0MSwicGF0aCI6Ii8xMjA0ODAyLzMxNTk2NTU0My02NTFhNTg5OC1iOTU2LTQyMjUtOWE5Ny1iYWRmNjMyODA4ZTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDE1MDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWM1ZDRlZjBmYzU5NGRhZDUwYWQyNmFhZGRlMjM4MjhmZDViZDM0YTdhOTAxNjdiZjZhYWExZTRhNmI0NWFiMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.VSKm6D1hq3mDaTwenwHuV3lr8iqxdVtNldnSqQMk0DQ)
I also removed the border. It wasn't there before, and in general this "dropzone" component we use elsewhere, borderless, such as in the font library, so it's probably best to not diverge:
So this PR:
Testing Instructions
Obsere the post or page summary panel, and observe changes to the featured image as unset.