Browse Source

Improved ColumnsArea on smaller windows, improved how ActionBar looks

closed-social-v3
Eugen Rochko 8 years ago
parent
commit
0c75ce1122
3 changed files with 4 additions and 6 deletions
  1. +2
    -4
      app/assets/javascripts/components/features/account/components/action_bar.jsx
  2. +1
    -1
      app/assets/javascripts/components/features/ui/components/column.jsx
  3. +1
    -1
      app/assets/javascripts/components/features/ui/components/columns_area.jsx

+ 2
- 4
app/assets/javascripts/components/features/account/components/action_bar.jsx View File

@ -29,15 +29,13 @@ const ActionBar = React.createClass({
}
if (account.getIn(['relationship', 'followed_by'])) {
followBack = 'follows you';
followBack = 'Follows you';
}
}
return (
<div>
<div style={{ borderTop: '1px solid #363c4b', borderBottom: '1px solid #363c4b', padding: '10px', lineHeight: '36px' }}>
{actionButton}
{account.get('followers_count')} followers
{account.get('following_count')} following
{followBack}
</div>
);

+ 1
- 1
app/assets/javascripts/components/features/ui/components/column.jsx View File

@ -61,7 +61,7 @@ const Column = React.createClass({
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 (
<div style={style} onWheel={this.handleWheel} onScroll={this.handleScroll}>

+ 1
- 1
app/assets/javascripts/components/features/ui/components/columns_area.jsx View File

@ -6,7 +6,7 @@ const ColumnsArea = React.createClass({
render () {
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}
</div>
);

Loading…
Cancel
Save