Fixed styling on document move
This commit is contained in:
@ -13,27 +13,38 @@ import Document from 'models/Document';
|
|||||||
import DocumentsStore from 'stores/DocumentsStore';
|
import DocumentsStore from 'stores/DocumentsStore';
|
||||||
|
|
||||||
const ResultWrapper = styled.div`
|
const ResultWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
color: ${color.text};
|
color: ${color.text};
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StyledChevronIcon = styled(ChevronIcon)`
|
||||||
|
padding-top: 2px;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ResultWrapperLink = ResultWrapper.withComponent('a').extend`
|
const ResultWrapperLink = ResultWrapper.withComponent('a').extend`
|
||||||
padding-top: 3px;
|
height: 32px;
|
||||||
padding-left: 5px;
|
padding-top: 3px;
|
||||||
|
padding-left: 5px;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active,
|
&:active,
|
||||||
&:focus {
|
&:focus {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: ${color.black};
|
background: ${color.black};
|
||||||
color: ${color.smokeLight};
|
color: ${color.smokeLight};
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
|
||||||
|
${StyledChevronIcon} svg {
|
||||||
|
fill: ${color.smokeLight};
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -79,16 +90,16 @@ type Props = {
|
|||||||
{this.resultDocument &&
|
{this.resultDocument &&
|
||||||
<Flex>
|
<Flex>
|
||||||
{' '}
|
{' '}
|
||||||
<ChevronIcon />
|
<StyledChevronIcon />
|
||||||
{' '}
|
{' '}
|
||||||
{this.resultDocument.pathToDocument
|
{this.resultDocument.pathToDocument
|
||||||
.map(doc => <span key={doc.id}>{doc.title}</span>)
|
.map(doc => <span key={doc.id}>{doc.title}</span>)
|
||||||
.reduce((prev, curr) => [prev, <ChevronIcon />, curr])}
|
.reduce((prev, curr) => [prev, <StyledChevronIcon />, curr])}
|
||||||
</Flex>}
|
</Flex>}
|
||||||
{document &&
|
{document &&
|
||||||
<Flex>
|
<Flex>
|
||||||
{' '}
|
{' '}
|
||||||
<ChevronIcon />
|
<StyledChevronIcon />
|
||||||
{' '}{document.title}
|
{' '}{document.title}
|
||||||
</Flex>}
|
</Flex>}
|
||||||
</Component>
|
</Component>
|
||||||
|
Reference in New Issue
Block a user