Skip to content

Commit 750948a

Browse files
authored
Fix: spacing and text-breaking (#5355)
Fix #5244
1 parent 9a9113b commit 750948a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

public/css/icinga/layout.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@
330330
padding-left: .75em;
331331
}
332332

333-
.nav-level-1 > .nav-item i {
333+
.nav-level-1 > .nav-item > a > i,
334+
.nav-level-1 > .nav-item > span > i {
334335
font-size: 1.5em;
335336
margin-right: .5em;
336337
}

public/css/icinga/menu.less

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
}
3636
}
3737

38-
#layout:not(.sidebar-collapsed) #menu .nav-item > a:first-of-type {
38+
#layout:not(.sidebar-collapsed) #menu .nav-item > a:first-of-type,
39+
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-2 > .nav-item > a:first-of-type,
40+
#layout.minimal-layout #menu .nav-level-1 > .nav-item > a:first-of-type {
3941
// Respect overflowing content
40-
overflow: hidden;
41-
text-overflow: ellipsis;
42-
white-space: nowrap;
42+
.text-ellipsis();
4343
}
4444

4545
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item {
@@ -537,9 +537,10 @@ html.no-js #toggle-sidebar {
537537

538538
span {
539539
padding-left: 1.375em;
540+
padding-right: 0.545em;
540541
height: @nav-item-height;
541-
display: flex;
542-
align-items: center;
542+
line-height: @nav-item-height;
543+
display: block;
543544

544545
font-weight: @font-weight-bold;
545546
.text-ellipsis();

0 commit comments

Comments
 (0)