Skip to content
Extraits de code Groupes Projets
Valider 0c75ce11 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Improved ColumnsArea on smaller windows, improved how ActionBar looks

parent 3f9708ed
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -29,15 +29,13 @@ const ActionBar = React.createClass({ ...@@ -29,15 +29,13 @@ const ActionBar = React.createClass({
} }
if (account.getIn(['relationship', 'followed_by'])) { if (account.getIn(['relationship', 'followed_by'])) {
followBack = 'follows you'; followBack = 'Follows you';
} }
} }
return ( return (
<div> <div style={{ borderTop: '1px solid #363c4b', borderBottom: '1px solid #363c4b', padding: '10px', lineHeight: '36px' }}>
{actionButton} {actionButton}
{account.get('followers_count')} followers
{account.get('following_count')} following
{followBack} {followBack}
</div> </div>
); );
......
...@@ -61,7 +61,7 @@ const Column = React.createClass({ ...@@ -61,7 +61,7 @@ const Column = React.createClass({
header = <ColumnHeader icon={this.props.icon} type={this.props.heading} onClick={this.handleHeaderClick} />; header = <ColumnHeader icon={this.props.icon} type={this.props.heading} onClick={this.handleHeaderClick} />;
} }
const style = { width: '350px', flex: '0 0 auto', background: '#282c37', margin: '10px', marginRight: '0', display: 'flex', flexDirection: 'column' }; const style = { width: '350px', flex: '0 0 auto', background: '#282c37', margin: '10px', marginRight: '0', marginBottom: '0', display: 'flex', flexDirection: 'column' };
return ( return (
<div style={style} onWheel={this.handleWheel} onScroll={this.handleScroll}> <div style={style} onWheel={this.handleWheel} onScroll={this.handleScroll}>
......
...@@ -6,7 +6,7 @@ const ColumnsArea = React.createClass({ ...@@ -6,7 +6,7 @@ const ColumnsArea = React.createClass({
render () { render () {
return ( return (
<div style={{ display: 'flex', flexDirection: 'row', flex: '1', marginRight: '10px' }}> <div style={{ display: 'flex', flexDirection: 'row', flex: '1', marginRight: '10px', marginBottom: '10px', overflowX: 'auto' }}>
{this.props.children} {this.props.children}
</div> </div>
); );
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter