fix: adjust position of table of contents in Doc component
This commit is contained in:
parent
98a4b3e78b
commit
8b55d42239
@ -68,7 +68,7 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
|
||||
|
||||
return (
|
||||
<div className="flex">
|
||||
<div className={`fixed right-16 top-32 z-10 transition-all ${isTocExpanded ? 'w-64' : 'w-10'}`}>
|
||||
<div className={`fixed right-20 top-32 z-10 transition-all ${isTocExpanded ? 'w-64' : 'w-10'}`}>
|
||||
{isTocExpanded
|
||||
? (
|
||||
<nav className="toc w-full bg-gray-50 p-4 rounded-lg shadow-md max-h-[calc(100vh-150px)] overflow-y-auto">
|
||||
|
Loading…
Reference in New Issue
Block a user