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

View File

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