fix: Allow TOC to scroll when larger than browser height (#2296)

This commit is contained in:
Tom Moor
2021-07-09 04:07:28 -07:00
committed by GitHub
parent 0e7d352781
commit 056f89fcfd

View File

@@ -70,11 +70,13 @@ const Wrapper = styled("div")`
display: none;
position: sticky;
top: 80px;
max-height: calc(100vh - 80px);
box-shadow: 1px 0 0 ${(props) => props.theme.divider};
margin-top: 40px;
margin-right: 2em;
min-height: 40px;
overflow-y: auto;
${breakpoint("desktopLarge")`
margin-left: -16em;