From 76007121253a23bbb15ee8b5921b1ead11ffc3fb Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 14 Aug 2016 11:31:13 +0200 Subject: [PATCH] Fixes to header title --- frontend/components/Layout/Layout.js | 2 +- .../components/Layout/components/Title/Title.js | 13 ++++++++----- frontend/scenes/DocumentScene/DocumentScene.js | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/components/Layout/Layout.js b/frontend/components/Layout/Layout.js index 30364d469..33076f9b0 100644 --- a/frontend/components/Layout/Layout.js +++ b/frontend/components/Layout/Layout.js @@ -62,7 +62,7 @@ class Layout extends React.Component {
{ user.team.name } - { this.props.title && ( / ) }{ this.props.title } + { this.props.title }
diff --git a/frontend/components/Layout/components/Title/Title.js b/frontend/components/Layout/components/Title/Title.js index 13a8a1273..9b8e41584 100644 --- a/frontend/components/Layout/components/Title/Title.js +++ b/frontend/components/Layout/components/Title/Title.js @@ -27,11 +27,14 @@ class Title extends React.Component { } return ( - - { title || this.props.placeholder } + + { title && ( / ) } + + { title } + ); } diff --git a/frontend/scenes/DocumentScene/DocumentScene.js b/frontend/scenes/DocumentScene/DocumentScene.js index 210b506d6..fde2f1214 100644 --- a/frontend/scenes/DocumentScene/DocumentScene.js +++ b/frontend/scenes/DocumentScene/DocumentScene.js @@ -146,6 +146,7 @@ class DocumentScene extends React.Component { ); title = ( +  /  { doc.collection.name } { ` / ${doc.title}` }