diff --git a/src/components/ApiLogo/ApiLogo.tsx b/src/components/ApiLogo/ApiLogo.tsx index 8a431e39..05acda2f 100644 --- a/src/components/ApiLogo/ApiLogo.tsx +++ b/src/components/ApiLogo/ApiLogo.tsx @@ -1,7 +1,7 @@ import { OpenAPIInfo } from '../../types'; import * as React from 'react'; import { observer } from 'mobx-react'; -import { LogoImgEl } from './styled.elements'; +import { LogoImgEl, LogoWrap } from './styled.elements'; const LinkWrap = url => Component => {Component}; @@ -15,6 +15,10 @@ export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> { const logo = ( ); - return info.contact && info.contact.url ? LinkWrap(info.contact.url)(logo) : logo; + return ( + + {info.contact && info.contact.url ? LinkWrap(info.contact.url)(logo) : logo}{' '} + + ); } } diff --git a/src/components/ApiLogo/styled.elements.ts b/src/components/ApiLogo/styled.elements.ts index 5089360a..3d1099ec 100644 --- a/src/components/ApiLogo/styled.elements.ts +++ b/src/components/ApiLogo/styled.elements.ts @@ -6,3 +6,7 @@ export const LogoImgEl = styled.img` display: inline-block; max-width: 100%; `; + +export const LogoWrap = styled.div` + text-align: center; +`;