fix: adjust position of table of contents in Doc component

This commit is contained in:
ZeroZ_JQ 2025-03-17 16:24:01 +08:00
parent 98a4b3e78b
commit 8b55d42239

View File

@ -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">