Skip to content

Commit

Permalink
fix: Api pages not rendering correctly on new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
lamATnginx committed Feb 27, 2025
1 parent 9f0650a commit 63a7b9e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ nav {
z-index: 9999;
}

@media (max-width: 1512px) {
@media (max-width: 1528px) {
.sidebar-layout {
display: none;
}
Expand Down Expand Up @@ -277,6 +277,7 @@ nav {
display: grid;
grid-template-rows: repeat(2, auto);
column-gap: var(--component-gap);
max-width: 100%;
}

.breadcrumb-layout {
Expand Down Expand Up @@ -348,6 +349,23 @@ nav {
}
}

.api {
margin: 2rem 0 2rem 2rem;
width: 100%;
.row {
display: grid !important;
}

.nginx-docs-api-container {
grid-column: 1 / -1 !important;
max-width: 100% !important;
}

.content-layout {
grid-template-columns: 1fr var(--side-gutter-width);
}
}

.main {
display: flex;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
});

// swap out v1 and v2 elements
const v1ElementIds = ["sidebar", "footer", "toc"]
const v1ElementIds = ["sidebar", "footer", "toc", "api"]

v1ElementIds.forEach((elementId) => {
const element = document.getElementById(elementId);
Expand Down

0 comments on commit 63a7b9e

Please sign in to comment.