Improved sidebar selected styling, simplified logic and css

This commit is contained in:
Tom Moor
2019-01-06 16:12:07 -08:00
parent 12e324d34c
commit b9765fb59e
11 changed files with 188 additions and 176 deletions

View File

@@ -35,7 +35,10 @@ const Breadcrumb = observer(({ document, collections }: Props) => {
</CollectionName>
{path.map(n => (
<React.Fragment key={n.id}>
<Slash /> <Crumb to={n.url}>{n.title}</Crumb>
<Slash />{' '}
<Crumb to={n.url} title={n.title}>
{n.title}
</Crumb>
</React.Fragment>
))}
</Wrapper>