File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -432,12 +432,12 @@ export default class RapiDoc extends LitElement {
432
432
< div style ="position:sticky; top:0; display:flex; flex-direction:row; align-items: stretch; padding:16px 30px 16px 16px; background: var(--nav-bg-color); ">
433
433
< slot name ="nav-logo " class ="logo "> </ slot >
434
434
< div style ="display:flex; flex:1 ">
435
- < input id ="nav-bar-search " style ="width:100%; padding-right:20px; color:var(--nav-accent -color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color) " type ="text " placeholder ="search " @change ="${ this . onSearchChange } " spellcheck ="false " >
435
+ < input id ="nav-bar-search " style ="width:100%; padding-right:20px; color:var(--nav-hover-text -color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color) " type ="text " placeholder ="search " @change ="${ this . onSearchChange } " spellcheck ="false " >
436
436
< div style ="margin: 6px 5px 0 -24px; font-size:var(--title-font-size); cursor:pointer; "> ⏎</ div >
437
437
</ div >
438
438
${ this . matchPaths
439
439
? html `
440
- < div style ='margin-left:5px; cursor:pointer; align-self:center; ' class ='small-font-size primary-text bold-text ' @click = '${ this . onClearSearch } '> CLEAR </ div > `
440
+ < div style ='margin-left:5px; cursor:pointer; align-self:center; color:var(--nav-text-color) ' class ='small-font-size primary-text bold-text ' @click = '${ this . onClearSearch } '> CLEAR </ div > `
441
441
: ''
442
442
}
443
443
</ div >
@@ -780,7 +780,7 @@ export default class RapiDoc extends LitElement {
780
780
return ;
781
781
}
782
782
entries . forEach ( ( entry ) => {
783
- if ( entry . isIntersecting ) {
783
+ if ( entry . isIntersecting && entry . intersectionRatio > 0 ) {
784
784
const oldNavEl = this . shadowRoot . querySelector ( '.nav-bar-path.active, .nav-bar-info.active' ) ;
785
785
let newNavEl ;
786
786
if ( entry . target . id . startsWith ( 'content-' ) ) {
You can’t perform that action at this time.
0 commit comments