mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 20:46:02 +08:00
fix: adjust position of table of contents in Doc component (#15996)
This commit is contained in:
parent
fe0d932f50
commit
db7a37a111
@ -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…
x
Reference in New Issue
Block a user