-
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
Templates: hide media field in list view #66573
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: -48 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
Flaky tests detected in a80cf3d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11579808523
|
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!
) : ( | ||
<div className="dataviews-view-list__media-placeholder"></div> | ||
); | ||
<div className="dataviews-view-list__media-wrapper"> |
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 removes the placeholder in all lists
, right?
I'm wondering why we needed an empty placeholder before though, because it would only be rendered if we hadn't provided mediaField
and wouldn't check if the result of the render
. 🤔
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.
Yeah, it removes it when the consumer doesn't provide a mediaField
, while before we'd render a placeholder.
) Co-authored-by: oandregal <[email protected]> Co-authored-by: ntsekouras <[email protected]>
What?
Hide the media field in the list view of the Templates page:
Why?
It hasn't proven very valuable to render the page preview in the little space given to the media field.
How?
mediaField
optional for list layout ee55aa1mediaField
to the list layout a80cf3dTesting Instructions