From 81896d32b81b6258fd5c7a19b3b4be62f2697930 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 13 May 2019 12:17:17 +0300 Subject: [PATCH] fix: fix logo gutter bg --- CHANGELOG.md | 1 + src/components/ApiLogo/ApiLogo.tsx | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fcdc52578..c880d184f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bug Fixes * crash in node due to broken URL parsing ([8df2b97](https://github.com/Rebilly/ReDoc/commit/8df2b97)) +* fix: fix logo gutter bg ([e43f7219](https://github.com/Rebilly/ReDoc/commit/e43f7219)) diff --git a/src/components/ApiLogo/ApiLogo.tsx b/src/components/ApiLogo/ApiLogo.tsx index bd3bf5c2d6..bd959e3841 100644 --- a/src/components/ApiLogo/ApiLogo.tsx +++ b/src/components/ApiLogo/ApiLogo.tsx @@ -17,13 +17,11 @@ export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> { // Use the english word logo if no alt text is provided const altText = logoInfo.altText ? logoInfo.altText : 'logo'; - const logo = ( - + const logo = ; + return ( + + {logoHref ? LinkWrap(logoHref)(logo) : logo} + ); - return {logoHref ? LinkWrap(logoHref)(logo) : logo}; } }