Search UI: center hashtag results

staging
multiple creatures 2019-04-15 20:46:25 -05:00
parent 340f1e9149
commit 3f282fe433
2 changed files with 8 additions and 2 deletions

View File

@ -84,7 +84,9 @@ class SearchResults extends ImmutablePureComponent {
<section>
<h5><Icon icon='hashtag' fixedWidth /><FormattedMessage id='search_results.hashtags' defaultMessage='Hashtags' /></h5>
{results.get('hashtags').map(hashtag => <Hashtag key={hashtag.get('name')} hashtag={hashtag} />)}
<div className='hashtags'>
{results.get('hashtags').map(hashtag => <Hashtag key={hashtag.get('name')} hashtag={hashtag} />)}
</div>
</section>
);
}

View File

@ -228,7 +228,11 @@
border-bottom: 0;
}
& > .hashtag {
& > .hashtags {
text-align: center;
}
& > div > .hashtag {
display: inline-block;
padding: 10px;
color: $secondary-text-color;