File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,12 @@ export default function navbarTemplate() {
89
89
: html `
90
90
${ ( this . infoDescriptionHeadingsInNavBar === 'true' )
91
91
? html `
92
- ${ this . resolvedSpec . infoDescriptionHeaders . length > 0 ? html `< div class ='nav-bar-info ' id ='link-overview ' data-content-id ='overview ' @click = '${ ( e ) => this . scrollToEventTarget ( e , false ) } ' > Overview </ div > ` : '' }
92
+ ${ this . resolvedSpec . infoDescriptionHeaders . length > 0
93
+ ? html `< div class ='nav-bar-info ' id ='link-overview ' data-content-id ='overview ' @click = '${ ( e ) => this . scrollToEventTarget ( e , false ) } '>
94
+ ${ this . resolvedSpec . info ?. title ?. trim ( ) || 'Overview' }
95
+ </ div > `
96
+ : ''
97
+ }
93
98
< div class ="overview-headers ">
94
99
${ this . resolvedSpec . infoDescriptionHeaders . map ( ( header ) => html `
95
100
< div
@@ -104,7 +109,9 @@ export default function navbarTemplate() {
104
109
</ div >
105
110
${ this . resolvedSpec . infoDescriptionHeaders . length > 0 ? html `< hr style ='border-top: 1px solid var(--nav-hover-bg-color); border-width:1px 0 0 0; margin: 15px 0 0 0 '/> ` : '' }
106
111
`
107
- : html `< div class ='nav-bar-info ' id ='link-overview ' data-content-id ='overview ' @click = '${ ( e ) => this . scrollToEventTarget ( e , false ) } '> Overview </ div > `
112
+ : html `< div class ='nav-bar-info ' id ='link-overview ' data-content-id ='overview ' @click = '${ ( e ) => this . scrollToEventTarget ( e , false ) } '>
113
+ ${ this . resolvedSpec . info ?. title ?. trim ( ) || 'Overview' }
114
+ </ div > `
108
115
}
109
116
`
110
117
}
You can’t perform that action at this time.
0 commit comments