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:
parent
b3063c75da
commit
7878f7e5ac
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user