1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Fix line breaking for tab badges (#332)

This commit is contained in:
zarianec 2017-06-05 15:44:03 +03:00 committed by Barry vd. Heuvel
parent b4e4b40a4b
commit f8f52221f9
2 changed files with 5 additions and 2 deletions

View File

@ -170,6 +170,9 @@ a.phpdebugbar-tab.phpdebugbar-active {
display: none;
vertical-align: middle;
}
a.phpdebugbar-tab span.phpdebugbar-badge.phpdebugbar-visible {
display: inline;
}
a.phpdebugbar-tab span.phpdebugbar-badge.phpdebugbar-important {
background: #ed6868;
color: white;

View File

@ -272,9 +272,9 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.bindAttr('badge', function(value) {
if (value !== null) {
this.$badge.text(value);
this.$badge.show();
this.$badge.addClass(csscls('visible'));
} else {
this.$badge.hide();
this.$badge.removeClass(csscls('visible'));
}
});