Make WordPress Core

Ticket #60501: 60501-2.diff

File 60501-2.diff, 1.3 KB (added by euthelup, 11 months ago)

Add equal spacing on all sides of plugin dependencies box. Also, avoid adding an empty plugin-card-center when there are no dependencies.

  • wp-admin/css/list-tables.css

     
    15981598.plugin-card .plugin-dependencies {
    15991599        background-color: #e5f5fa;
    16001600        border-left: 3px solid #72aee6;
    1601         margin-bottom: .5em;
    16021601        padding: 15px;
    16031602}
    16041603
     
    16611660        margin-bottom: 10px;
    16621661}
    16631662
     1663.plugin-card-center {
     1664        position: relative;
     1665        padding: 0 20px 20px;
     1666        margin-top: auto;
     1667}
     1668
    16641669.plugin-card-bottom {
    16651670        clear: both;
    16661671        padding: 12px 20px;
  • wp-admin/includes/class-wp-plugin-install-list-table.php

     
    673673                                        <p><?php echo $description; ?></p>
    674674                                        <p class="authors"><?php echo $author; ?></p>
    675675                                </div>
    676                                 <?php echo $this->get_dependencies_notice( $plugin ); ?>
    677676                        </div>
     677                        <?php
     678                        $dependencies_notice = $this->get_dependencies_notice( $plugin );
     679                        if ( ! empty( $dependencies_notice ) ) {
     680                                echo '<div class="plugin-card-center">' . $dependencies_notice . '</div>';
     681                        }
     682                        ?>
    678683                        <div class="plugin-card-bottom">
    679684                                <div class="vers column-rating">
    680685                                        <?php