Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Table of Contents (2) not showing top part of table #1662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

coatless
Copy link

@coatless coatless commented May 31, 2024

This adds a top margin of 10em to ensure the table of contents initial section is visible and not cutoff/inaccessible.

Before:
Screenshot showing the inaccessible portion of the table of contents generate by ToC (2)

After:
Screenshot showing the top portion of the ToC (2) with the committed change now being accessible

This can quickly be explored by adding a Python cell with:

from IPython.display import display, HTML
display(HTML("""
<style>
#toc-wrapper { 
z-index: 90; 
position: fixed !important;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 10px;
border-style: solid;
border-width: thin;
background-color: #fff;
/* default - alterable via nbextension-configurator */
top: 10em;}
</style>"""))

Close #1651

This adds a top margin of 10em to ensure the table of contents initial section is visible and not cutoff/inaccessible.

Close ipython-contrib#1651
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TOC extension is hiding below toolbar
1 participant