Skip to content

Commit

Permalink
Removed an unnecessary truncation, made the CSS code smaller & simple…
Browse files Browse the repository at this point in the history
…r, and updated info to use the current patch links.
  • Loading branch information
KZeni committed Mar 25, 2021
1 parent d6baa44 commit 9f643c2
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 55 deletions.
15 changes: 1 addition & 14 deletions admin-bar-wrap-fix.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admin-bar-wrap-fix.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions admin-bar-wrap-fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Author: KZeni
* Author URI: https://kzeni.com
* License: GPLv3
* Version: 1.0.7
* Version: 1.1
* Requires at least: 4.6
* Tested up to: 5.7
*/

define('ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION', '1.0.7');
define('ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION', '1.1');
define('ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE', __FILE__);
define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_PATH', plugin_dir_path(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE));
define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_URL', plugin_dir_url(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE));
Expand Down
54 changes: 18 additions & 36 deletions admin-bar-wrap-fix.scss
Original file line number Diff line number Diff line change
@@ -1,55 +1,37 @@
/* Improve spacing and prevent Site Title from eating WP Logo */
#wpadminbar {
.quicklinks > ul > li,
.quicklinks .ab-item {
max-width: 100px;
}
}
/* Media Query - Min-Width: 1061px */
@media only screen and (min-width: 66.3125em) {
#wpadminbar {
.quicklinks > ul > li,
.quicklinks .ab-item {
/* Reset the spacing. */
max-width: initial;
text-overflow: clip;
}
}
}
@media screen and (min-width: 782px){
/* Prevent wrapping of admin bar that has more items than admin bar area */
@media screen and (min-width: 782px) {
// Prevent wrapping of admin bar that has more items than admin bar area
#wpadminbar {
.quicklinks {
justify-content:space-between;
justify-content: space-between;
> ul > li {
float:none!important;
float: none !important;
}
> ul > li,
.ab-item {
white-space:nowrap;
text-overflow:ellipsis;
min-width:0!important;
white-space: nowrap;
text-overflow: ellipsis;
min-width: 0 !important;
}
.ab-item {
overflow:hidden;
overflow: hidden;
.ab-label,
.display-name {
float:none;
display:inline;
float: none;
display: inline;
}
}
}
.quicklinks,
.quicklinks > ul {
display:-ms-flexbox;
display:flex;
flex-wrap:nowrap;
-ms-flex-wrap:nowrap;
min-width:0!important;
display: -ms-flexbox;
display: flex;
flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
min-width: 0 !important;
}
#wp-admin-bar-top-secondary {
flex-direction:row-reverse;
-ms-flex-direction:row-reverse;
flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
}
}
}
}
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: KZeni
Donate link: https://www.paypal.me/KZeni
License: GPLv3
Tags: Admin Bar, adminbar, ui, ui fix, overflow, wrapping
Stable tag: 1.0.7
Stable tag: 1.1
Tested up to: 5.7
Requires at least: 4.6
Requires PHP: 5.4
Expand All @@ -20,7 +20,7 @@ Check things out on GitHub at [https://github.com/KZeni/Admin-Bar-Wrap-Fix](http

= Shouldn't this be fixed within WordPress itself? =

I would think so. This has been submitted as a patch at https://core.trac.wordpress.org/ticket/44438, but I figured it would still be beneficial as a plugin in the meantime.
I would think so. This has been submitted as a patch at [core ticket #44438](https://core.trac.wordpress.org/ticket/28983) & [core GitHub pull request #1082](https://github.com/WordPress/wordpress-develop/pull/1082), but I figured it would still be beneficial as a plugin to solve things for people in the meantime.

== Screenshots ==

Expand All @@ -30,6 +30,14 @@ I would think so. This has been submitted as a patch at https://core.trac.wordpr

== Changelog ==

= 1.1 =

Released March 25th, 2021

* Removed an unnecessary truncation.
* Made the CSS code smaller & simpler.
* Updated info to point to the current WordPress Core [Trac ticket](https://core.trac.wordpress.org/ticket/28983) and [GitHub pull request](https://github.com/WordPress/wordpress-develop/pull/1082).

= 1.0.7 =

Released March 3rd, 2021
Expand Down

0 comments on commit 9f643c2

Please sign in to comment.