Skip to content

Commit 9a9113b

Browse files
committed
css: Center icons in collapsed menu with and without a scrollbar
1 parent 63a73ea commit 9a9113b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

public/css/icinga/layout.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303

304304
> .badge {
305305
position: absolute;
306-
right: .5em;
306+
right: 1em;
307307
bottom: .25em;
308308
font-size: 75%;
309309
overflow: hidden;

public/css/icinga/menu.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
flex: 1;
1717
overflow: auto;
1818
overflow-x: hidden;
19+
scrollbar-width: thin;
1920
}
2021

2122
#menu .nav-item {
@@ -98,7 +99,7 @@
9899
}
99100

100101
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
101-
padding: ~"calc((@{nav-item-height} - 2em) / 2) .5em .5em .5em";
102+
padding: ~"calc((@{nav-item-height} - 2em) / 2) .5em .5em .75em";
102103
}
103104

104105
#menu ul:not(.nav-level-2) > .selected > a {

0 commit comments

Comments
 (0)