Skip to content

Commit

Permalink
Search in Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvey1214 authored and hakenr committed Nov 1, 2024
1 parent f3f1877 commit b0d3340
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.on-this-page-navigation {
height: fit-content;
top: 3rem;
}

ul {
Expand All @@ -16,9 +17,9 @@ ul,
list-style-type: none;
}

ul li, ::deep ul li {
margin-bottom: .25rem;
}
ul li, ::deep ul li {
margin-bottom: .25rem;
}

::deep a {
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
TValue="SearchItem"
@bind-Value="@SelectedResult"
MinimumLength="1"
Delay="1"
CssClass="sidebar-search mb-3 pt-1"
Delay="1"
CssClass="sidebar-search pt-1"
DataProvider="ProvideSuggestions"
@ref="_autosuggest">
<ItemTemplate Context="searchItem"><span class="small">@searchItem.Title</span></ItemTemplate>
Expand Down
6 changes: 4 additions & 2 deletions Havit.Blazor.Documentation/Shared/Navbar.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="@CssClassHelper.Combine(CssClass, "nav-container mx-auto sticky-top bg-body")">
<div class="@CssClassHelper.Combine(CssClass, "nav-container mx-auto sticky-top bg-body")" style="z-index: 1030;">
<HxNavbar ContainerCssClass="container-fluid">
<HxNavbarBrand CssClass="py-0">
<img src="./logo.png" width="32" alt="HAVIT Blazor">
Expand All @@ -25,7 +25,9 @@
Premium
</HxNavLink>
</HxNav>
<div class="d-flex gap-3 align-items-center">
<div class="d-flex gap-3 align-items-center justify-content-center">
<Search />

<a href="https://github.com/havit/Havit.Blazor" class="text-body" target="_blank">
<HxIcon Icon="BootstrapIcon.Github" />
</a>
Expand Down
2 changes: 0 additions & 2 deletions Havit.Blazor.Documentation/Shared/Sidebar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
</div>
</HeaderTemplate>
<ItemsTemplate>
<Search />

<HxSidebarItem Text="Getting started" Href="/getting-started" Match="NavLinkMatch.All" Icon="BootstrapIcon.RocketTakeoff" TooltipText="Getting started" />
<HxSidebarItem Href="https://blocks.havit.blazor.eu" Match="NavLinkMatch.All" CssClass="w-100" Icon="BootstrapIcon.Boxes" TooltipText="Blocks" >
<ContentTemplate>
Expand Down

0 comments on commit b0d3340

Please sign in to comment.