Skip to content

Commit dd20926

Browse files
committed
Revisions: fix misplaced buttons
1 parent 8043320 commit dd20926

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/wp-admin/css/revisions.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ table.diff .diff-addedline ins {
309309
float: right;
310310
margin-left: 6px;
311311
margin-right: 6px;
312-
margin-top: 2px;
313312
}
314313

315314
.diff-meta-from {
@@ -632,8 +631,4 @@ div.revisions-controls > .wp-slider > .ui-slider-handle {
632631
word-break: break-all;
633632
word-wrap: break-word;
634633
}
635-
636-
.diff-meta input.restore-revision {
637-
margin-top: 0;
638-
}
639634
}

src/wp-admin/includes/revision.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ function wp_print_revision_templates() {
370370

371371
<script id="tmpl-revisions-buttons" type="text/html">
372372
<div class="revisions-previous">
373-
<input class="button" type="button" value="<?php echo esc_attr_x( 'Previous', 'Button label for a previous revision' ); ?>" />
373+
<input class="button button-compact" type="button" value="<?php echo esc_attr_x( 'Previous', 'Button label for a previous revision' ); ?>" />
374374
</div>
375375

376376
<div class="revisions-next">
377-
<input class="button" type="button" value="<?php echo esc_attr_x( 'Next', 'Button label for a next revision' ); ?>" />
377+
<input class="button button-compact" type="button" value="<?php echo esc_attr_x( 'Next', 'Button label for a next revision' ); ?>" />
378378
</div>
379379
</script>
380380

@@ -454,9 +454,9 @@ function wp_print_revision_templates() {
454454
<# } #>
455455
<?php } ?>
456456
<# if ( data.attributes.autosave ) { #>
457-
type="button" class="restore-revision button button-primary" value="<?php esc_attr_e( 'Restore This Autosave' ); ?>" />
457+
type="button" class="restore-revision button button-primary button-compact" value="<?php esc_attr_e( 'Restore This Autosave' ); ?>" />
458458
<# } else { #>
459-
type="button" class="restore-revision button button-primary" value="<?php esc_attr_e( 'Restore This Revision' ); ?>" />
459+
type="button" class="restore-revision button button-primary button-compact" value="<?php esc_attr_e( 'Restore This Revision' ); ?>" />
460460
<# } #>
461461
<# } #>
462462
</div>

src/wp-includes/css/buttons.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ TABLE OF CONTENTS:
380380

381381
.wp-core-ui .button,
382382
.wp-core-ui .button.button-large,
383+
.wp-core-ui .button.button-compact,
383384
.wp-core-ui .button.button-small,
384385
input#publish,
385386
input#save-post,

0 commit comments

Comments
 (0)