Skip to content

Commit 8ee4d2f

Browse files
committed
fix: Api pages not rendering correctly on new theme
1 parent de5dbc7 commit 8ee4d2f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

assets/css/v2/style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ nav {
219219
z-index: 9999;
220220
}
221221

222-
@media (max-width: 1512px) {
222+
@media (max-width: 1528px) {
223223
.sidebar-layout {
224224
display: none;
225225
}
@@ -277,6 +277,7 @@ nav {
277277
display: grid;
278278
grid-template-rows: repeat(2, auto);
279279
column-gap: var(--component-gap);
280+
max-width: 100%;
280281
}
281282

282283
.breadcrumb-layout {
@@ -348,6 +349,23 @@ nav {
348349
}
349350
}
350351

352+
.api {
353+
margin: 2rem 0 2rem 2rem;
354+
width: 100%;
355+
.row {
356+
display: grid !important;
357+
}
358+
359+
.nginx-docs-api-container {
360+
grid-column: 1 / -1 !important;
361+
max-width: 100% !important;
362+
}
363+
364+
.content-layout {
365+
grid-template-columns: 1fr var(--side-gutter-width);
366+
}
367+
}
368+
351369
.main {
352370
display: flex;
353371
}

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
});
5858

5959
// swap out v1 and v2 elements
60-
const v1ElementIds = ["sidebar", "footer", "toc"];
60+
const v1ElementIds = ["sidebar", "footer", "toc", "api"]
6161

6262
v1ElementIds.forEach((elementId) => {
6363
const element = document.getElementById(elementId);

0 commit comments

Comments
 (0)