Make WordPress Core

Changeset 58747


Ignore:
Timestamp:
07/17/2024 11:35:11 PM (5 months ago)
Author:
joedolson
Message:

Editor: Limit scope of resizable menu container CSS.

The CSS to make menu item containers resizable in the admin menu editor was too broadly scoped, and caused classic editor metaboxes to have unconstrained height. Limit the scope of the CSS changes to only impact menu item containers.

Props neotrope, sabernhardt, joedolson.
Fixes #61662.

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

Legend:

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

    r58256 r58747  
    12721272}
    12731273
    1274 .categorydiv,
    1275 .customlinkdiv,
    1276 .posttypediv,
    1277 .taxonomydiv {
    1278     max-height: inherit;
    1279     height: 100%;
    1280 }
    1281 
    12821274.wp-tab-panel,
    12831275.categorydiv div.tabs-panel,
     
    12861278.taxonomydiv div.tabs-panel {
    12871279    min-height: 42px;
    1288     /* Allow space for content after tab panels in nav menu editor. */
    1289     max-height: calc( 100% - 75px );
    1290     height: 100%;
     1280    max-height: 200px;
    12911281    overflow: auto;
    12921282    padding: 0 0.9em;
  • trunk/src/wp-admin/css/nav-menus.css

    r58567 r58747  
    5252    height: 100%;
    5353    max-height: inherit;
     54}
     55
     56#menu-settings-column .categorydiv,
     57#menu-settings-column .customlinkdiv,
     58#menu-settings-column .posttypediv,
     59#menu-settings-column .taxonomydiv {
     60    max-height: inherit;
     61    height: 100%;
     62}
     63
     64#menu-settings-column .wp-tab-panel,
     65#menu-settings-column .categorydiv div.tabs-panel,
     66#menu-settings-column .customlinkdiv div.tabs-panel,
     67#menu-settings-column .posttypediv div.tabs-panel,
     68#menu-settings-column .taxonomydiv div.tabs-panel {
     69    /* Allow space for content after tab panels in nav menu editor. */
     70    max-height: calc( 100% - 75px );
     71    height: 100%;
    5472}
    5573
Note: See TracChangeset for help on using the changeset viewer.