0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-08 09:03:58 +02:00

fix: use correct segment selector for TOC sidebar positioning

This commit is contained in:
hamki 2026-01-16 04:31:51 +08:00
parent b3063c75da
commit 7878f7e5ac
No known key found for this signature in database
GPG Key ID: 092D4EC7F4DECB68

View File

@ -61,7 +61,7 @@ async function renderRawFileToContainer(container: HTMLElement, rawFileLink: str
function updateSidebarPosition(elFileView: HTMLElement, sidebar: HTMLElement): void {
const fileHeader = elFileView.querySelector('.file-header');
const segment = elFileView.querySelector('.ui.segment');
const segment = elFileView.querySelector('.ui.bottom.segment');
if (!fileHeader || !segment) return;
const headerRect = fileHeader.getBoundingClientRect();