md padding, title click to home, 'Evidence type'

This commit is contained in:
Lachlan Kermode
2019-08-07 11:55:17 +01:00
parent 2f96dccb03
commit 54d4c3818a
4 changed files with 4 additions and 2 deletions

View File

@@ -123,6 +123,7 @@ class Dashboard extends React.Component {
<Toolbar
isNarrative={!!app.narrative}
methods={{
onTitle: actions.toggleCover,
onTagFilter: tag => actions.toggleFilter('tags', tag),
onCategoryFilter: category => actions.toggleFilter('categories', category),
onSelectNarrative: this.setNarrative

View File

@@ -64,7 +64,7 @@ class SourceOverlay extends React.Component {
{(type || date || url) ? <div className='mo-box'>
<div>
{type ? <h4>Media type</h4> : null}
{type ? <h4>Evidence type</h4> : null}
{type ? <p><i className='material-icons left'>perm_media</i>{type}</p> : null}
</div>
<div>

View File

@@ -158,7 +158,7 @@ class Toolbar extends React.Component {
return (
<div className='toolbar'>
<div className='toolbar-header'><p>{title}</p></div>
<div className='toolbar-header'onClick={this.props.methods.onTitle}><p>{title}</p></div>
<div className='toolbar-tabs'>
{this.renderToolbarTab(0, narrativesLabel, 'timeline')}
{(isCategories) ? this.renderToolbarTab(1, categoriesLabel, 'widgets') : null}

View File

@@ -267,6 +267,7 @@ $overlay-bg: rgba(239,239,239,0.9);
font-family: Helvetica, Georgia, serif;
line-height: 1.5em;
min-width: 100%;
margin-bottom: 120px;
color: $overlay-bg;