mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
fix: fix logo gutter bg
This commit is contained in:
parent
4c59628e14
commit
81896d32b8
|
@ -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))
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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 = (
|
||||
<LogoImgEl
|
||||
src={logoInfo.url}
|
||||
style={{ backgroundColor: logoInfo.backgroundColor }}
|
||||
alt={altText}
|
||||
/>
|
||||
const logo = <LogoImgEl src={logoInfo.url} alt={altText} />;
|
||||
return (
|
||||
<LogoWrap style={{ backgroundColor: logoInfo.backgroundColor }}>
|
||||
{logoHref ? LinkWrap(logoHref)(logo) : logo}
|
||||
</LogoWrap>
|
||||
);
|
||||
return <LogoWrap>{logoHref ? LinkWrap(logoHref)(logo) : logo}</LogoWrap>;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user