From bf2d4e57c2883ff241e73b156bc16dea10893387 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Thu, 28 Jan 2016 16:03:11 +0100 Subject: pretty icons --- src/web/js/components/Menu.react.js | 18 +++++++++++++----- src/web/js/components/MiddlePanel.react.js | 22 +++++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) (limited to 'src/web/js/components') diff --git a/src/web/js/components/Menu.react.js b/src/web/js/components/Menu.react.js index f699f92e..91e9ff9e 100644 --- a/src/web/js/components/Menu.react.js +++ b/src/web/js/components/Menu.react.js @@ -32,7 +32,7 @@ var FeedItem = React.createClass({ if(this.props.active) { classes += " bg-primary"; } - if(this.props.error_count == 6) { + if(this.props.error_count >= 6) { classes += " bg-danger"; } else if(this.props.error_count > 3) { classes += " bg-warning"; @@ -151,17 +151,25 @@ var MenuFilter = React.createClass({ if (this.props.feed_in_error) { error_button = ( + bsSize="small" bsStyle="warning"> + + ); } return ( + title="Display all feeds" + onMouseDown={this.setAllFilter} bsSize="small"> + + + bsSize="small"> + + {error_button} ); diff --git a/src/web/js/components/MiddlePanel.react.js b/src/web/js/components/MiddlePanel.react.js index b2107383..d2c4df5b 100644 --- a/src/web/js/components/MiddlePanel.react.js +++ b/src/web/js/components/MiddlePanel.react.js @@ -119,29 +119,41 @@ var MiddlePanelFilter = React.createClass({ if(this.state.display_search) { search_row = } + var delay = 750; return (
+ title="Display all articles" + onMouseDown={this.setAllFilter} bsSize="small"> + + + bsSize="small"> + + - + title="Mark all displayed article as read" + bsSize="small"> + + {search_row} -- cgit