replace text in FilterBar with icons

pull/9399/head
alxd 2018-12-03 09:01:43 +01:00
parent 1c4c35f3d2
commit b147d7c444
2 changed files with 29 additions and 17 deletions

View File

@ -30,37 +30,49 @@ export default class FilterBar extends React.PureComponent {
className={selectedFilter === 'mention' ? 'active' : ''}
onClick={this.onClick('mention')}
>
<FormattedMessage
id='notifications.filter.mentions'
defaultMessage='Mentions'
/>
{/*
<FormattedMessage
id='notifications.filter.mentions'
defaultMessage='Mentions'
/>
*/}
@
</button>
<button
className={selectedFilter === 'favourite' ? 'active' : ''}
onClick={this.onClick('favourite')}
>
<FormattedMessage
id='notifications.filter.favourites'
defaultMessage='Favourites'
/>
{/*
<FormattedMessage
id='notifications.filter.favourites'
defaultMessage='Favourites'
/>
*/}
<i className='fa fa-fw fa-star' />
</button>
<button
className={selectedFilter === 'reblog' ? 'active' : ''}
onClick={this.onClick('reblog')}
>
<FormattedMessage
id='notifications.filter.boosts'
defaultMessage='Boosts'
/>
{/*
<FormattedMessage
id='notifications.filter.boosts'
defaultMessage='Boosts'
/>
*/}
<i className='fa fa-fw fa-retweet' />
</button>
<button
className={selectedFilter === 'follow' ? 'active' : ''}
onClick={this.onClick('follow')}
>
<FormattedMessage
id='notifications.filter.follows'
defaultMessage='Follows'
/>
{/*
<FormattedMessage
id='notifications.filter.follows'
defaultMessage='Follows'
/>
*/}
<i className='fa fa-fw fa-user-plus' />
</button>
</div>
);

View File

@ -1493,7 +1493,7 @@ a.account__display-name {
position: relative;
flex-grow: 1;
color: $primary-text-color;
padding: 5px 5px 12px;
padding: 10px 5px 12px;
text-decoration: none;
font-weight: 400;
font-size: 15px;