Repository navigation
MediaEdit: Keep the compact control height after selecting media - #87542
Conversation
Switch the Identity screens to the media-utils MediaEdit and fix the compact control growing by 2px once media is selected.
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: -3.72 kB (-0.04%) Total Size: 8.72 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. keeps the default tab on the moved tab in
|
|
Does this also need to be fixed in |
|
…dPress#87542) Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Resolves: #75436
The compact
MediaEditcontrol gets 2px taller after selecting media, because the selected item is wrapped in a group with its own border. This PR fixes that in themedia-utilscopy and updates the Identity screens to use that copy instead of the one in@wordpress/fields.It also sets
box-sizing: border-boxto the picker button, because the extensible site editor page doesn't reset it and the control was 50px there.Testing Instructions
Use of AI Tools
Generated with Opus 5.5 and adjusted/reviewed manually.