Skip to content

Commit

Permalink
fix: md breakpoint display (#406)
Browse files Browse the repository at this point in the history
Display lg menu + mobile 'On this page' section
  • Loading branch information
andreascorti authored Jan 24, 2024
1 parent 8478008 commit 2396994
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@
</div>
</div>
</nav>
{#if !isMainPage}
<div class="demo-mobile-menu d-block d-md-none">
<MobileSubMenu />
</div>
{/if}
<div class="demo-main d-flex flex-column">
{#if isMainPage}
<slot />
Expand All @@ -96,11 +91,14 @@
<SideMenu />
</aside>
<div class="pb-4 col">
<div class="demo-mobile-menu d-block d-lg-none">
<MobileSubMenu />
</div>
<MainSection>
<slot />
</MainSection>
</div>
<div class="demo-toc d-none d-md-flex col-auto side-menu me-auto">
<div class="demo-toc d-none d-lg-flex col-auto side-menu me-auto">
<TOC />
</div>
</div>
Expand Down Expand Up @@ -134,6 +132,8 @@
background-color: var(--bs-body-bg);
box-shadow: $box-shadow;
z-index: 10;
margin-left: calc(var(--bs-gutter-x) * -0.5);
margin-right: calc(var(--bs-gutter-x) * -0.5);
}
.demo-nav-top {
Expand Down
2 changes: 1 addition & 1 deletion demo/src/routes/menu/MobileSubMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<div class="d-flex align-items-center justify-content-between">
<button
class="text-dark d-flex align-items-center btn btn-link link-underline link-underline-opacity-0"
class="d-md-none text-dark d-flex align-items-center btn btn-link link-underline link-underline-opacity-0"
aria-expanded={isMenuExpanded}
on:click={() => {
isMenuExpanded = true;
Expand Down

0 comments on commit 2396994

Please sign in to comment.