Dataviews: Fix dataview columns width#72969
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. |
|
I'm working on making the primary column have a max-width so that we don't get back to having the original issue. |
| aria-describedby={ tableNoticeId } | ||
| role={ isInfiniteScroll ? 'feed' : undefined } | ||
| > | ||
| <colgroup> |
There was a problem hiding this comment.
I think this approach with colgroup is nice and we don't have to set styles for each row.
2592049 to
48874ff
Compare
|
@rcrdortiz can you add a changelog entry in dataviews package? Also we should fix this comment from Jay (it was in my temp PR). |
Addressed in the latest commit. |
ntsekouras
left a comment
There was a problem hiding this comment.
Looks good, thanks!
Let's wait just a tiny bit for @jameskoster to verify the wrapping white-space change and let's land this.
|
Seems good now! :) |
|
@rcrdortiz please rebase for the changelog conflicts and let's land |
There ya go. |
|
There was a conflict while trying to cherry-pick the commit to the wp/6.9 branch. Please resolve the conflict manually and create a PR to the wp/6.9 branch. PRs to wp/6.9 are similar to PRs to trunk, but you should base your PR on the wp/6.9 branch instead of trunk. |
Co-authored-by: rcrdortiz <rcrdortiz@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org>
|
Opened a PR for the manual backport. |
Co-authored-by: rcrdortiz <rcrdortiz@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: oandregal <oandregal@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: priethor <priethor@git.wordpress.org>
What?
Closes #72774
We've changed how the title column of dataview and other columns are rendered so that the title uses most of the available space. This way, pages with different title lengths will have a consistent layout.
Why?
See the linked issue (the one we're solving) for more information.
How?
Changed CSS classes to allow the title column to use as much available space as needed. The rest of the columns use the minimum space. Added a
colgroupfor better column intent declaration.Testing Instructions
http://localhost:8888/wp-admin/site-editor.php?p=%2FpageTesting Instructions for Keyboard
Screenshots or screencast