Skip to content

Commit 528fa1a

Browse files
authored
Merge pull request #29 from ibering/issue-27
Issue #17 [CSS Issue] Fix labels in collapsed menu Many thanks @ibering ! :)
2 parents 26eca48 + ecfbb85 commit 528fa1a

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

public/css/app.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
}
379379

380380
.sidebar-menu li > a > .pull-right-container {
381-
position: absolute;
381+
position: static;
382382
right: 10px;
383383
top: 50%;
384384
margin-top: -7px;
@@ -388,17 +388,21 @@
388388
.sidebar-menu>li .badge {
389389
margin-top: 0;
390390
margin-right: 0;
391-
position: absolute;
391+
position: static;
392392
right: 5px;
393393
line-height: 1.25;
394+
margin:2px;
394395
}
395396

396397
@media (max-width: 768px) {
397398
.sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > a > span {
399+
/*
398400
top: 0;
399401
margin-left: -12px;
400402
padding: 12px 5px 12px 0px;
401403
background-color: inherit;
404+
405+
*/
402406
}
403407
}
404408

public/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@
205205

206206
<li class="treeview" ui-sref-active="active">
207207
<a ui-sref="services">
208-
<i class="fa fa-cog text-primary"></i> <span> Services</span>
209-
<span class="pull-right-container">
208+
<i class="fa fa-cog text-primary"></i>
209+
<span>
210+
<span> Services</span>
210211
<small class="label pull-right bg-primary"
211212
ng-show="data.servicestatus_overview.unknown > 0">
212213
{{ data.servicestatus_overview.unknown }}
@@ -223,8 +224,9 @@
223224

224225
<li class="treeview" ui-sref-active="active">
225226
<a ui-sref="problems">
226-
<i class="fa fa-exclamation-triangle text-primary"></i> <span> Issues</span>
227-
<span class="pull-right-container">
227+
<i class="fa fa-exclamation-triangle text-primary"></i>
228+
<span>
229+
<span> Issues</span>
228230
<small class="label pull-right bg-purple" ng-show="data.number_of_service_problems > 0">
229231
{{ data.number_of_service_problems }}
230232
</small>

0 commit comments

Comments
 (0)