Skip to content

fix: Allow ToC to scroll independently of page content #7754

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
15 changes: 11 additions & 4 deletions packages/ui-components/Containers/MetaBar/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@
flex-col
items-start
gap-8
overflow-y-auto
border-neutral-200
px-4
py-6
[overflow-wrap:anywhere]
lg:sticky
lg:top-0
lg:h-max
lg:min-h-screen
lg:max-h-screen
lg:px-6
dark:border-neutral-900;

dl {
@apply w-full;
@apply flex
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that with lg: this will only apply on large+ screens. Nice application of Tailwind here!

w-full
flex-col
gap-1.5
pb-12
[scrollbar-width:none]
lg:max-h-[calc(100vh-6rem)]
lg:overflow-y-auto
[&::-webkit-scrollbar]:hidden;
}

dt {
Expand Down Expand Up @@ -55,6 +61,7 @@

ol {
@apply flex
w-full
list-none
flex-col
gap-1.5
Expand Down
Loading