Make WordPress Core

Changeset 58256


Ignore:
Timestamp:
05/30/2024 04:41:07 PM (8 weeks ago)
Author:
joedolson
Message:

Menus: Add resize: vertical to menu item selector panel.

Make the panels for selecting menu items to add to a panel resizable using the CSS resize property. This minor change makes it easier to select items to add on desktop devices, and has nominal impact on other interfaces.

Props namith.jawahar, NekoJonez, jorbin, joen, joedolson.
Fixes #60763.

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

Legend:

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

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

    r57553 r58256  
    2222#nav-menu-meta .accordion-section-content {
    2323    padding: 18px 13px;
     24    resize: vertical;
    2425}
    2526
     
    4950    clear: both;
    5051    margin: 10px 0 0;
     52    height: 100%;
     53    max-height: inherit;
    5154}
    5255
Note: See TracChangeset for help on using the changeset viewer.