Skip to content

Commit bf16f1e

Browse files
committed
Redoc: Fix auto scroll issue
1 parent 9e4b1b9 commit bf16f1e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

assets/css/v2/style.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,17 @@ h6,
320320
}
321321

322322
html {
323-
scroll-behavior: smooth;
323+
scroll-behavior: scroll; /* Breaks for redocly */
324324
font-optical-sizing: auto;
325325
font-weight: 300;
326326
font-style: normal;
327327
}
328328

329+
html:has(api-container) {
330+
/* Fixes scroll for redocly but loses smooth scroll */
331+
scroll-behavior: auto;
332+
}
333+
329334
h1,
330335
h2,
331336
h3,

0 commit comments

Comments
 (0)