Merge pull request #416 from jorilallo/fix-nesting-spacing

Fix sidebar collections spacing
This commit is contained in:
Jori Lallo 2017-11-15 23:03:20 -08:00 committed by GitHub
commit a468deeef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class CollectionLink extends Component {
icon={<CollectionIcon expanded={expanded} color={collection.color} />}
iconColor={collection.color}
>
<Flex justify="space-between">
<CollectionName justify="space-between">
{collection.name}
<CollectionAction>
@ -134,7 +134,7 @@ class CollectionLink extends Component {
open={this.menuOpen}
/>
</CollectionAction>
</Flex>
</CollectionName>
{expanded && (
<Children column>
@ -232,6 +232,10 @@ const DocumentLink = observer(
}
);
const CollectionName = styled(Flex)`
padding: 0 0 4px;
`;
const CollectionAction = styled.a`
position: absolute;
right: 0;