-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Pages: fix featured image appearance in list layout #65525
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: +208 B (+0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@@ -138,6 +138,10 @@ ul.dataviews-view-list { | |||
background-color: $gray-100; | |||
border-radius: $grid-unit-05; | |||
|
|||
.fields-controls__featured-image-container { |
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 is a field specific style, it should live where the field is defined and not in the generic dataviews package.
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.
Thank you. Would that be packages/edit-site/src/components/post-list/style.scss
? A new stylesheet in /packages/edit-site/src/components/post-fields
? Or somewhere else?
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.
A new stylesheet in /packages/edit-site/src/components/post-fields?
I think that would be ideal.
@@ -0,0 +1,3 @@ | |||
.fields-controls__featured-image-container { |
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.
Does this style work in all layouts?
@@ -0,0 +1,3 @@ | |||
.fields-controls__featured-image-container { | |||
height: 100%; | |||
} |
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's a missing new line here.
Ugh, I think this may actually be an issue in #64496 and not on trunk. Long week 😪 |
@jameskoster Does this still need to target WordPress 6.7? |
No. Sorry I forgot to close this one. |
Featured images of certain dimensions are not appearing correctly in the Pages data view. This PR fixes it by ensuring the container fills the available space vertically.
Testing Instructions