mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(docs-infra): drop tabs layout from the API reference details page (#59068)
Drop the tabs in favor of a single page separated by sections. PR Close #59068
This commit is contained in:
@@ -49,9 +49,7 @@ export class TableOfContentsLoader {
|
||||
const updatedTopValues = new Map<string, number>();
|
||||
|
||||
for (const heading of headings) {
|
||||
const parentTop = heading.parentElement?.offsetTop ?? 0;
|
||||
const top = Math.floor(parentTop + heading.offsetTop - this.toleranceThreshold);
|
||||
updatedTopValues.set(heading.id, top);
|
||||
updatedTopValues.set(heading.id, this.calculateTop(heading));
|
||||
}
|
||||
|
||||
this.tableOfContentItems.update((oldItems) => {
|
||||
|
||||
Reference in New Issue
Block a user