You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a mdbook where I modified the index.hbs to add a logo above the TOC:
I have upgraded to the latest version v0.4.42 and readjusted the index.hbs and all the theme contents and since then I can't get my logo working. The TOC is always over it. I have tried a bunch of things such as modifying the css of the scrollbar to relative which work, but then I loose the scrollbar:
Snippet of my added div:
<navid="sidebar"class="sidebar"aria-label="Table of contents">
<divclass="logo">
<imgalt="{{book_title}}"width=148px src="{{path_to_root}}logos/mir_alpha.png">
</div>
<!-- populated by js -->
<mdbook-sidebar-scrollboxclass="sidebar-scrollbox"></mdbook-sidebar-scrollbox>
<noscript>
<iframeclass="sidebar-iframe-outer"src="{{path_to_root}}toc.html"></iframe>
</noscript>
<divid="sidebar-resize-handle"class="sidebar-resize-handle">
<divclass="sidebar-resize-indicator"></div>
</div>
</nav>
I tried adjusting the scrollbar css to relative, or top padding which work, but something else break. If I had the div inside the mdbook-sidebar-scrollbox, the logo does below the TOC.
Any idea on how to achieve this? Thank you!
Version
v0.4.42
The text was updated successfully, but these errors were encountered:
Question
Hi,
I have a mdbook where I modified the index.hbs to add a logo above the TOC:
I have upgraded to the latest version v0.4.42 and readjusted the index.hbs and all the theme contents and since then I can't get my logo working. The TOC is always over it. I have tried a bunch of things such as modifying the css of the scrollbar to relative which work, but then I loose the scrollbar:
Snippet of my added div:
I tried adjusting the scrollbar css to relative, or top padding which work, but something else break. If I had the div inside the mdbook-sidebar-scrollbox, the logo does below the TOC.
Any idea on how to achieve this? Thank you!
Version
The text was updated successfully, but these errors were encountered: