Skip to content

Commit 6b2e46f

Browse files
committed
Media: Fix button sizing on Edit Media screen.
On the Edit Media screen, buttons were not all of consistent size. This was caused by custom sizing applied to CSS in the Edit Media panel that was not consistent with other button sizes. Remove custom sizing and adds class so all Edit Media buttons will match styling of other admin buttons in desktop and mobile viewports. Props hbhalodia, sabernhardt, sandeepdahiya, mikinc860, mukesh27, joedolson. Fixes #63559. Built from https://develop.svn.wordpress.org/trunk@60640 git-svn-id: http://core.svn.wordpress.org/trunk@59976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent eb32f85 commit 6b2e46f

File tree

6 files changed

+4
-22
lines changed

6 files changed

+4
-22
lines changed

wp-admin/css/media-rtl.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -981,15 +981,6 @@ border color while dragging a file over the uploader drop area */
981981
padding: 1em 0 0;
982982
}
983983

984-
.image-editor .imgedit-menu .button {
985-
display: inline-block;
986-
width: auto;
987-
min-height: 28px;
988-
font-size: 13px;
989-
line-height: 2;
990-
padding: 0 10px;
991-
}
992-
993984
.imgedit-menu .button:after,
994985
.imgedit-menu .button:before {
995986
font: normal 16px/1 dashicons;

wp-admin/css/media-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/css/media.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -980,15 +980,6 @@ border color while dragging a file over the uploader drop area */
980980
padding: 1em 0 0;
981981
}
982982

983-
.image-editor .imgedit-menu .button {
984-
display: inline-block;
985-
width: auto;
986-
min-height: 28px;
987-
font-size: 13px;
988-
line-height: 2;
989-
padding: 0 10px;
990-
}
991-
992983
.imgedit-menu .button:after,
993984
.imgedit-menu .button:before {
994985
font: normal 16px/1 dashicons;

wp-admin/css/media.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/includes/image-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function wp_image_editor( $post_id, $msg = false ) {
267267
</div>
268268
</fieldset>
269269
<div class="imgedit-crop-apply imgedit-menu container">
270-
<button class="button-primary" type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-apply button"><?php esc_html_e( 'Apply Crop' ); ?></button> <button type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-clear button" disabled="disabled"><?php esc_html_e( 'Clear Crop' ); ?></button>
270+
<button class="button button-primary" type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-apply button"><?php esc_html_e( 'Apply Crop' ); ?></button> <button type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this );" class="imgedit-crop-clear button" disabled="disabled"><?php esc_html_e( 'Clear Crop' ); ?></button>
271271
</div>
272272
</div>
273273
</div>

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.9-alpha-60639';
19+
$wp_version = '6.9-alpha-60640';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)