diff --git a/lib/components/Redoc/redoc.scss b/lib/components/Redoc/redoc.scss index 0066bb94..7934a0b7 100644 --- a/lib/components/Redoc/redoc.scss +++ b/lib/components/Redoc/redoc.scss @@ -31,6 +31,7 @@ .redoc-wrap { z-index: 0; position: relative; + overflow: hidden; font-family: $base-font, $base-font-family; font-size: $em-size; line-height: $base-line-height; diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index 4459a252..d470facb 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -200,6 +200,9 @@ export class MenuService { setActiveByHash(hash) { if (!hash) { + if (this.categories[0].headless) { + this.activate(0, 0); + } return; } let catIdx, methodIdx; diff --git a/lib/services/schema-helper.service.ts b/lib/services/schema-helper.service.ts index c01e1fd6..642ac585 100644 --- a/lib/services/schema-helper.service.ts +++ b/lib/services/schema-helper.service.ts @@ -28,6 +28,7 @@ export interface MenuCategory { empty?: string; virtual?: boolean; ready: boolean; + headless: boolean; } // global var for this module