Make WordPress Core

Changeset 54392


Ignore:
Timestamp:
10/04/2022 11:10:03 PM (20 months ago)
Author:
audrasjb
Message:

Administration: Avoid menu/sub-menu overlap on small screens.

This changeset fixes overlapping glitches discovered in WordPress Admin menu behavior when used on small screens.

Props turtlepod, collieit, chaion07, hilayt24, mehedi890, markparnell, webcommsat, mehedi890, ryokuhi, sabernhardt, ironprogrammer, audrasjb, costdev, ugyensupport.
Fixes #32747.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/common.js

    r54177 r54392  
    939939        }
    940940
    941         if ( adjustment > 1 ) {
     941        if ( adjustment > 1 && $('#wp-admin-bar-menu-toggle').is(':hidden') ) {
    942942            $submenu.css( 'margin-top', '-' + adjustment + 'px' );
    943943        } else {
Note: See TracChangeset for help on using the changeset viewer.