Merge pull request #4017 from kjac/v8-feature-content-app-badge-without-text

V8: Allow Content App badges without "count"
This commit is contained in:
Warren Buckley
2019-01-09 13:01:07 +00:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -60,6 +60,7 @@
font-weight: bold;
padding: 2px;
line-height: 16px;
display: block;
&.-type-alert {
background-color: @red-l1;
@@ -67,6 +68,10 @@
&.-type-warning {
background-color: @yellow-d2;
}
&:empty {
height: 12px;
min-width: 12px;
}
}
.umb-sub-views-nav-item-text {

View File

@@ -12,7 +12,7 @@
ng-class="{'is-active': item.active, '-has-error': item.hasError}">
<i class="icon {{ item.icon }}"></i>
<span class="umb-sub-views-nav-item-text">{{ item.name }}</span>
<div ng-show="item.badge && item.badge.count" class="badge -type-{{item.badge.type}}">{{item.badge.count}}</div>
<div ng-show="item.badge" class="badge -type-{{item.badge.type}}">{{item.badge.count}}</div>
</a>
</div>
</li>