fix: font-weight
layoutshift in ToC
This commit is contained in:
parent
62927ff1d7
commit
b63cf6779d
1 changed files with 0 additions and 1 deletions
|
@ -82,7 +82,6 @@ function buildToc(headings: Heading[]): Heading[] {
|
|||
if (!link) return
|
||||
|
||||
const addRemove = section.intersectionRatio > 0 ? 'add' : 'remove'
|
||||
link.classList[addRemove]('font-semibold')
|
||||
link.classList[addRemove]('text-foreground')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue