mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix: affix position when ToC is visible
This commit is contained in:
@@ -253,7 +253,7 @@ export default function SlugPage(props: Partial<SidebarLayoutProps & { error?: s
|
|||||||
position={{
|
position={{
|
||||||
bottom: 20,
|
bottom: 20,
|
||||||
right:
|
right:
|
||||||
matches || (props.data?.member?.kind !== 'Class' && props.data?.member?.kind !== 'Interface') ? 20 : 280,
|
matches || (props.data?.member?.kind !== 'Class' && props.data?.member?.kind !== 'Interface') ? 20 : 268,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Transition transition="slide-up" mounted={scroll.y > 200}>
|
<Transition transition="slide-up" mounted={scroll.y > 200}>
|
||||||
|
|||||||
Reference in New Issue
Block a user