mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
c338846d63
* Mobile nav: Horizontal scrolling * Reduce nav item spacing on mobile * Update overlay color * Fix modal colors * Improve mobile nav styles * Improve navbar on mobile Safari * Scroll active nav item into viewport
33 lines
748 B
Plaintext
33 lines
748 B
Plaintext
@using NBitcoin
|
|
@{
|
|
Layout = "/Views/Shared/_Layout.cshtml";
|
|
ViewBag.ShowMenu = ViewBag.ShowMenu ?? true;
|
|
if (!ViewData.ContainsKey("NavPartialName"))
|
|
{
|
|
ViewData["NavPartialName"] = "_Nav";
|
|
}
|
|
}
|
|
|
|
@section PageHeadContent {
|
|
@await RenderSectionAsync("PageHeadContent", false)
|
|
}
|
|
|
|
@section PageFootContent {
|
|
@await RenderSectionAsync("PageFootContent", false)
|
|
}
|
|
|
|
@if (ViewBag.ShowMenu)
|
|
{
|
|
<partial name="@ViewData["NavPartialName"].ToString()" />
|
|
<script>
|
|
(function () {
|
|
const activeEl = document.querySelector('#SectionNav .nav .active')
|
|
if (activeEl) activeEl.scrollIntoView({ inline: 'center' })
|
|
})()
|
|
</script>
|
|
}
|
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
@RenderBody()
|