mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 09:33:44 +03:00
Merge branch 'master' into releases
This commit is contained in:
commit
9fec6251b0
|
@ -31,6 +31,7 @@
|
||||||
.redoc-wrap {
|
.redoc-wrap {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
font-family: $base-font, $base-font-family;
|
font-family: $base-font, $base-font-family;
|
||||||
font-size: $em-size;
|
font-size: $em-size;
|
||||||
line-height: $base-line-height;
|
line-height: $base-line-height;
|
||||||
|
|
|
@ -200,6 +200,9 @@ export class MenuService {
|
||||||
|
|
||||||
setActiveByHash(hash) {
|
setActiveByHash(hash) {
|
||||||
if (!hash) {
|
if (!hash) {
|
||||||
|
if (this.categories[0].headless) {
|
||||||
|
this.activate(0, 0);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let catIdx, methodIdx;
|
let catIdx, methodIdx;
|
||||||
|
|
|
@ -28,6 +28,7 @@ export interface MenuCategory {
|
||||||
empty?: string;
|
empty?: string;
|
||||||
virtual?: boolean;
|
virtual?: boolean;
|
||||||
ready: boolean;
|
ready: boolean;
|
||||||
|
headless: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// global var for this module
|
// global var for this module
|
||||||
|
|
Loading…
Reference in New Issue
Block a user