Fix: spacing and text-breaking (#5355)

Fix #5244
This commit is contained in:
Jan Schuppik 2025-05-14 15:34:12 +02:00 committed by GitHub
parent 9a9113bd2b
commit 750948a729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -330,7 +330,8 @@
padding-left: .75em;
}
.nav-level-1 > .nav-item i {
.nav-level-1 > .nav-item > a > i,
.nav-level-1 > .nav-item > span > i {
font-size: 1.5em;
margin-right: .5em;
}

View File

@ -35,11 +35,11 @@
}
}
#layout:not(.sidebar-collapsed) #menu .nav-item > a:first-of-type {
#layout:not(.sidebar-collapsed) #menu .nav-item > a:first-of-type,
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-2 > .nav-item > a:first-of-type,
#layout.minimal-layout #menu .nav-level-1 > .nav-item > a:first-of-type {
// Respect overflowing content
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
.text-ellipsis();
}
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item {
@ -537,9 +537,10 @@ html.no-js #toggle-sidebar {
span {
padding-left: 1.375em;
padding-right: 0.545em;
height: @nav-item-height;
display: flex;
align-items: center;
line-height: @nav-item-height;
display: block;
font-weight: @font-weight-bold;
.text-ellipsis();