Skip to content

Commit

Permalink
style: 前台目录增加最大高度
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Mar 21, 2023
1 parent 4c09630 commit e6e05ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/components/Toc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function (props: {
<div
id="toc-container"
className="bg-white w-60 card-shadow dark:card-shadow-dark ml-2 dark:bg-dark overflow-y-auto pb-2"
style={{ maxHeight: 450 }}
style={{ maxHeight: 'calc(100vh - 200px)' }}
>
<MarkdownTocBar content={props.content} headingOffset={56} />
</div>
Expand Down

0 comments on commit e6e05ea

Please sign in to comment.