mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
fix: align logo by center
This commit is contained in:
parent
49c23c9345
commit
18ec3ac17b
|
@ -1,9 +1,7 @@
|
|||
import { observer } from 'mobx-react';
|
||||
import * as React from 'react';
|
||||
import { OpenAPIInfo } from '../../types';
|
||||
import { LogoImgEl, LogoWrap } from './styled.elements';
|
||||
|
||||
const LinkWrap = url => Component => <a href={url}>{Component}</a>;
|
||||
import { LogoImgEl, LogoWrap, LinkWrap } from './styled.elements';
|
||||
|
||||
@observer
|
||||
export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import * as React from 'react';
|
||||
import styled from '../../styled-components';
|
||||
|
||||
export const LogoImgEl = styled.img`
|
||||
|
@ -10,3 +11,9 @@ export const LogoImgEl = styled.img`
|
|||
export const LogoWrap = styled.div`
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const Link = styled.a`
|
||||
display: inline-block;
|
||||
`;
|
||||
|
||||
export const LinkWrap = url => Component => <Link href={url}>{Component}</Link>;
|
Loading…
Reference in New Issue
Block a user