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.

Reviewed by jorbin.
Merges [58747] to the 6.6 branch.

Props neotrope, sabernhardt, joedolson.
Fixes #61662.
Built from https://develop.svn.wordpress.org/branches/6.6@58758


git-svn-id: http://core.svn.wordpress.org/branches/6.6@58160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya 2024-07-18 16:15:16 +00:00
parent a305bc9b34
commit be59e6ba32
9 changed files with 43 additions and 27 deletions

View File

@ -1272,23 +1272,13 @@ label.post-format-icon {
margin: 0;
}
.categorydiv,
.customlinkdiv,
.posttypediv,
.taxonomydiv {
max-height: inherit;
height: 100%;
}
.wp-tab-panel,
.categorydiv div.tabs-panel,
.customlinkdiv div.tabs-panel,
.posttypediv div.tabs-panel,
.taxonomydiv div.tabs-panel {
min-height: 42px;
/* Allow space for content after tab panels in nav menu editor. */
max-height: calc( 100% - 75px );
height: 100%;
max-height: 200px;
overflow: auto;
padding: 0 0.9em;
border: solid 1px #dcdcde;

File diff suppressed because one or more lines are too long

View File

@ -1271,23 +1271,13 @@ label.post-format-icon {
margin: 0;
}
.categorydiv,
.customlinkdiv,
.posttypediv,
.taxonomydiv {
max-height: inherit;
height: 100%;
}
.wp-tab-panel,
.categorydiv div.tabs-panel,
.customlinkdiv div.tabs-panel,
.posttypediv div.tabs-panel,
.taxonomydiv div.tabs-panel {
min-height: 42px;
/* Allow space for content after tab panels in nav menu editor. */
max-height: calc( 100% - 75px );
height: 100%;
max-height: 200px;
overflow: auto;
padding: 0 0.9em;
border: solid 1px #dcdcde;

File diff suppressed because one or more lines are too long

View File

@ -54,6 +54,24 @@ ul.add-menu-item-tabs li {
max-height: inherit;
}
#menu-settings-column .categorydiv,
#menu-settings-column .customlinkdiv,
#menu-settings-column .posttypediv,
#menu-settings-column .taxonomydiv {
max-height: inherit;
height: 100%;
}
#menu-settings-column .wp-tab-panel,
#menu-settings-column .categorydiv div.tabs-panel,
#menu-settings-column .customlinkdiv div.tabs-panel,
#menu-settings-column .posttypediv div.tabs-panel,
#menu-settings-column .taxonomydiv div.tabs-panel {
/* Allow space for content after tab panels in nav menu editor. */
max-height: calc( 100% - 75px );
height: 100%;
}
.metabox-holder-disabled .postbox,
.metabox-holder-disabled .accordion-section-content,
.metabox-holder-disabled .accordion-section-title {

File diff suppressed because one or more lines are too long

View File

@ -53,6 +53,24 @@ ul.add-menu-item-tabs li {
max-height: inherit;
}
#menu-settings-column .categorydiv,
#menu-settings-column .customlinkdiv,
#menu-settings-column .posttypediv,
#menu-settings-column .taxonomydiv {
max-height: inherit;
height: 100%;
}
#menu-settings-column .wp-tab-panel,
#menu-settings-column .categorydiv div.tabs-panel,
#menu-settings-column .customlinkdiv div.tabs-panel,
#menu-settings-column .posttypediv div.tabs-panel,
#menu-settings-column .taxonomydiv div.tabs-panel {
/* Allow space for content after tab panels in nav menu editor. */
max-height: calc( 100% - 75px );
height: 100%;
}
.metabox-holder-disabled .postbox,
.metabox-holder-disabled .accordion-section-content,
.metabox-holder-disabled .accordion-section-title {

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.6.1-alpha-58751';
$wp_version = '6.6.1-alpha-58758';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.