diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index ff2184f..9b19186 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -459,12 +459,11 @@ nav { .sidebar-layout { display: flex; flex-direction: column; - position: relative; /* required for absolute-positioned pseudo element */ + position: relative; z-index: 2; - min-height: 100vh; + min-height: 74vh; } -/* this is the complete, corrected CSS you can directly copy/paste clearly: */ .sidebar-layout::before { content: ""; position: absolute; @@ -785,9 +784,9 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon { padding-top: 1.5rem; align-items: start; overflow-y: auto; + overflow-x: hidden; color: var(--color-foreground); - /* Reset/Renormalize lists to remove default browser styling */ .sidebar__container, .sidebar__container button, .sidebar__container ul, @@ -1481,10 +1480,8 @@ a:has(code:not(pre code)) { padding: 0.15rem 0.5rem; font-size: 0.75rem; z-index: 999; - /* position: absolute; */ background-color: white; margin: 0 0 -1px 0; - /* box-shadow: 2px 2px 0px var(--color-shadow); */ } .code-container { @@ -1636,7 +1633,7 @@ hr { background-repeat: no-repeat; background-size: contain; background-position: left center; - width: 200px; /* Adjust the width as needed to fit the logo */ + width: 200px; img { display: none; diff --git a/assets/js/sidebar-v2.js b/assets/js/sidebar-v2.js index 3efb8c5..a55e256 100644 --- a/assets/js/sidebar-v2.js +++ b/assets/js/sidebar-v2.js @@ -16,19 +16,3 @@ document.addEventListener('click', (e) => { } } }); - -document.addEventListener('DOMContentLoaded', () => { - const sidebar = document.querySelector('.sidebar__ul'); - - if (!sidebar) return; - - const activeLink = sidebar.querySelector('.sidebar__link--current'); - - if (activeLink) { - activeLink.scrollIntoView({ - behavior: 'auto', - block: 'center', - inline: 'nearest', - }); - } -}); diff --git a/exampleSite/content/test-product/sidebar/nesting-1b/_index.md b/exampleSite/content/test-product/sidebar/nesting-1b/_index.md index 23035ac..c626598 100644 --- a/exampleSite/content/test-product/sidebar/nesting-1b/_index.md +++ b/exampleSite/content/test-product/sidebar/nesting-1b/_index.md @@ -2,3 +2,6 @@ description: Nesting-1b title: Nesting-1b --- + +1b has some content, but also some nested stuff. +This should cause an overview page to render. \ No newline at end of file diff --git a/layouts/partials/sidebar-list.html b/layouts/partials/sidebar-list.html index 5707779..10a7e66 100644 --- a/layouts/partials/sidebar-list.html +++ b/layouts/partials/sidebar-list.html @@ -2,7 +2,6 @@ {{ $currentPage := .currentPage }} {{ $firstSection := .firstSection }} {{ $idPrefix := .idPrefix }} - {{ with $firstSection }}
-{{ end }} - -{{/* {{ if gt (.WordCount) 0 }} -