Make WordPress Core

Changeset 55984


Ignore:
Timestamp:
06/22/2023 07:52:24 AM (17 months ago)
Author:
audrasjb
Message:

Help/About: Improve Dashboard screen options behavior on small screens.

This changeset improve Dashboard screen options by stacking them vertically on small screens.

Props dhrumilk, prashantbhivsane, marybaum, dhruvishah2203, ababir, mukesh27, chiragrathod103, oglekler, tb1909, jahidcse, audrasjb.
Fixes #57977.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r55919 r55984  
    41234123}
    41244124
     4125@media screen and (max-width: 480px) {
     4126    .metabox-prefs-container {
     4127        display: grid;
     4128    }
     4129
     4130    .metabox-prefs-container > * {
     4131        display: inline-block;
     4132        padding: 2px;
     4133    }
     4134}
     4135
    41254136@media screen and (max-width: 320px) {
    41264137    /* Prevent default center alignment and larger font for the Right Now widget when
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r55693 r55984  
    11191119            <?php _e( 'Expand or collapse the elements by clicking on their headings, and arrange them by dragging their headings or by clicking on the up and down arrows.' ); ?>
    11201120        </p>
     1121        <div class="metabox-prefs-container">
    11211122        <?php
    11221123
     
    11381139        }
    11391140        ?>
     1141        </div>
    11401142        </fieldset>
    11411143        <?php
Note: See TracChangeset for help on using the changeset viewer.