File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -618,10 +618,12 @@ function generateNavbar(navbar: any, hasSearch: boolean = false): string {
618618 </li>`
619619 }
620620
621- const searchButton = hasSearch
622- ? `<button class="btn btn-link nav-link ms-2" type="button" data-bs-toggle="modal" data-bs-target="#searchModal" title="Search (Ctrl+K)" style="opacity:0.85;">
623- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.85-3.85zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z"/></svg>
624- </button>`
621+ const searchItem = hasSearch
622+ ? `<li class="nav-item">
623+ <button class="btn nav-link" type="button" data-bs-toggle="modal" data-bs-target="#searchModal" title="Search (Ctrl+K)">
624+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.85-3.85zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z"/></svg>
625+ </button>
626+ </li>`
625627 : ''
626628
627629 return `
@@ -634,8 +636,8 @@ function generateNavbar(navbar: any, hasSearch: boolean = false): string {
634636 <div class="collapse navbar-collapse" id="navbarNav">
635637 <ul class="navbar-nav ms-auto">
636638 ${ linkItems }
639+ ${ searchItem }
637640 </ul>
638- ${ searchButton }
639641 </div>
640642 </div>
641643 </nav>`
You can’t perform that action at this time.
0 commit comments