From 8731adf2a3c38fd82865b93877f2981b467e5627 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 2 Dec 2016 12:53:09 +0200 Subject: [PATCH 1/2] Fix regression: side panel overlaps footer --- lib/components/Redoc/redoc.scss | 1 + 1 file changed, 1 insertion(+) 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; From 82f4598a5b054c2100cd12875f41f19ff9d22935 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 2 Dec 2016 12:53:47 +0200 Subject: [PATCH 2/2] Activate first menu item if first cat is headless --- lib/services/menu.service.ts | 3 +++ lib/services/schema-helper.service.ts | 1 + 2 files changed, 4 insertions(+) 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