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> <section>
<h5><Icon icon='hashtag' fixedWidth /><FormattedMessage id='search_results.hashtags' defaultMessage='Hashtags' /></h5> <h5><Icon icon='hashtag' fixedWidth /><FormattedMessage id='search_results.hashtags' defaultMessage='Hashtags' /></h5>
<div className='hashtags'>
{results.get('hashtags').map(hashtag => <Hashtag key={hashtag.get('name')} hashtag={hashtag} />)} {results.get('hashtags').map(hashtag => <Hashtag key={hashtag.get('name')} hashtag={hashtag} />)}
</div>
</section> </section>
); );
} }

View File

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