Skip to content

Commit

Permalink
Fix Table of Contents max-height
Browse files Browse the repository at this point in the history
Without this fix you can never see the bottom entries after you run with binder
  • Loading branch information
pankgeorg authored Feb 11, 2021
1 parent c101e01 commit e1e8fbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TableOfContents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ const toc_css = """
border: 3px solid rgba(0, 0, 0, 0.15);
border-radius: 10px;
box-shadow: 0 0 11px 0px #00000010;
max-height: 500px;
/* That is, viewport minus top minus Live Docs */
max-height: calc(100vh - 5rem - 56px);
overflow: auto;
z-index: 5;
background: white;
Expand Down

0 comments on commit e1e8fbb

Please sign in to comment.