Fixes to header title

This commit is contained in:
Jori Lallo
2016-08-14 11:31:13 +02:00
parent 94c5f105dd
commit 7600712125
3 changed files with 10 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ class Layout extends React.Component {
<div className={ styles.headerLeft }>
<Link to="/" className={ styles.team }>{ user.team.name }</Link>
<span className={ styles.title }>
{ this.props.title && (<span>&nbsp;/&nbsp;</span>) }{ this.props.title }
{ this.props.title }
</span>
</div>
<Flex className={ styles.headerRight }>

View File

@@ -27,11 +27,14 @@ class Title extends React.Component {
}
return (
<span
title={ this.props.children }
className={ cx(styles.title, { untitled: usePlaceholder }) }
>
{ title || this.props.placeholder }
<span>
{ title && (<span>&nbsp;/&nbsp;</span>) }
<span
title={ this.props.children }
className={ cx(styles.title, { untitled: usePlaceholder }) }
>
{ title }
</span>
</span>
);
}

View File

@@ -146,6 +146,7 @@ class DocumentScene extends React.Component {
);
title = (
<span>
&nbsp;/&nbsp;
<Link to={ `/collections/${doc.collection.id}` }>{ doc.collection.name }</Link>
{ ` / ${doc.title}` }
</span>