Fixes to header title
This commit is contained in:
@@ -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> / </span>) }{ this.props.title }
|
||||
{ this.props.title }
|
||||
</span>
|
||||
</div>
|
||||
<Flex className={ styles.headerRight }>
|
||||
|
||||
@@ -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> / </span>) }
|
||||
<span
|
||||
title={ this.props.children }
|
||||
className={ cx(styles.title, { untitled: usePlaceholder }) }
|
||||
>
|
||||
{ title }
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -146,6 +146,7 @@ class DocumentScene extends React.Component {
|
||||
);
|
||||
title = (
|
||||
<span>
|
||||
/
|
||||
<Link to={ `/collections/${doc.collection.id}` }>{ doc.collection.name }</Link>
|
||||
{ ` / ${doc.title}` }
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user