Skip to content

Commit f31941c

Browse files
committed
fix: fix pos of api breadcrumb
1 parent bad2a12 commit f31941c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_assets/js/announcement.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,19 @@ $(document).ready(function () {
3838
var navBar = $("#navbar");
3939
var content = $("#content");
4040
var sideNav = $(".additional-content-column");
41+
var apiBreadcrumb = $(".api-breadcrumbs-container, #markdown-toc");
4142

4243
if (height >= 0) {
4344
TNav.css("top", height + (availWidth <= 766 ? 4 : 0));
4445
navBar.css("top", (availWidth <= 766 ? 4 : TNav[0].offsetHeight) + height);
4546
content.css("padding-top", availWidth <= 766 ? 0 : navBar[0].offsetHeight + height);
47+
apiBreadcrumb.css("top", navBar[0].offsetHeight + TNav[0].offsetHeight + height);
4648
sideNav.css("top", 180 + height);
4749
} else {
4850
TNav.css("top", 0);
4951
navBar.css("top", availWidth <= 766 ? 0 : TNav[0].offsetHeight);
5052
content.css("padding-top", availWidth <= 766 ? 0 : navBar[0].offsetHeight);
53+
apiBreadcrumb.css("top", availWidth <= 766 ? 0 : navBar[0].offsetHeight + TNav[0].offsetHeight);
5154
}
5255

5356
setSideNavPosition();

0 commit comments

Comments
 (0)