Admin Menu: Better wrapping for long menu item names.

Props munyagu, jagirbaheshwp, harshbarach, pratikkry, hareesh-pillai, naveenkharwar, mukesh27, chetan200891, dushanthi, worldweb, audrasjb, afercia, amolv, iqbalbary, davidbaumwald, sabernhardt, johnjamesjacoby, garrett-eclipse, garrett-eclipse.
Fixes #42201.

Built from https://develop.svn.wordpress.org/trunk@49149


git-svn-id: http://core.svn.wordpress.org/trunk@48911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2020-10-14 19:53:08 +00:00
parent 118b9aea4d
commit 0e4d84b105
5 changed files with 21 additions and 9 deletions

View File

@ -347,7 +347,14 @@
}
#adminmenu div.wp-menu-name {
padding: 8px 0;
padding: 8px 36px 8px 8px;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
#adminmenu div.wp-menu-image {
@ -683,7 +690,7 @@ li#wp-admin-bar-menu-toggle {
}
.auto-fold #adminmenu a.menu-top {
height: 34px;
min-height: 34px;
}
.auto-fold #adminmenu li.wp-menu-open {
@ -784,7 +791,6 @@ li#wp-admin-bar-menu-toggle {
/* Restore the menu names */
.auto-fold #adminmenu .wp-menu-name {
position: static;
margin-right: 35px;
}
/* Switch the arrow side */

File diff suppressed because one or more lines are too long

View File

@ -346,7 +346,14 @@
}
#adminmenu div.wp-menu-name {
padding: 8px 0;
padding: 8px 8px 8px 36px;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
#adminmenu div.wp-menu-image {
@ -682,7 +689,7 @@ li#wp-admin-bar-menu-toggle {
}
.auto-fold #adminmenu a.menu-top {
height: 34px;
min-height: 34px;
}
.auto-fold #adminmenu li.wp-menu-open {
@ -783,7 +790,6 @@ li#wp-admin-bar-menu-toggle {
/* Restore the menu names */
.auto-fold #adminmenu .wp-menu-name {
position: static;
margin-left: 35px;
}
/* Switch the arrow side */

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-49148';
$wp_version = '5.6-alpha-49149';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.