Skip to content

Commit 6bf2e9a

Browse files
committed
[src/scss]: Improve heading style for sidebar
1 parent 3001b30 commit 6bf2e9a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/scss/_app-sidebar.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@
140140

141141
// Section Heading
142142
.nav-header {
143+
display: inline;
144+
overflow: hidden;
143145
color: var(--#{$lte-prefix}sidebar-header-color);
146+
text-overflow: ellipsis;
144147
background-color: inherit;
145148
}
146149

@@ -225,8 +228,11 @@
225228
}
226229

227230
.nav-header {
231+
position: relative;
232+
width: 100%;
228233
padding: $nav-link-padding-y ($nav-link-padding-y * 1.5);
229234
font-size: .9rem;
235+
@include transition(width $lte-transition-fn $lte-transition-speed);
230236
}
231237

232238
// Tree view menu
@@ -402,7 +408,7 @@
402408
max-width: var(--#{$lte-prefix}sidebar-width);
403409

404410
.sidebar-menu .nav-header {
405-
display: inline-block;
411+
display: inline;
406412
}
407413

408414
.sidebar-menu .nav-link {

0 commit comments

Comments
 (0)