make on this page sticky
Took 2 minutes
This commit is contained in:
parent
6e46732bcc
commit
b7a5665036
@ -82,7 +82,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => {
|
||||
return (
|
||||
<motion.div
|
||||
ref={ref}
|
||||
className="w-44 flex flex-col gap-2 text-sm select-none"
|
||||
className="sticky top-[5.5rem] w-44 max-h-[calc(100vh-3.5rem)] flex flex-col gap-2 text-sm select-none"
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: inView ? 1 : 0 }}
|
||||
transition={{ duration: 0.2 }}
|
||||
@ -122,7 +122,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => {
|
||||
draggable={false}
|
||||
className="block py-1"
|
||||
>
|
||||
{truncateText(header.text, 26)}
|
||||
{truncateText(header.text, 24)}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user