Small style fixes (#4206)
* fix(components/media_modal): Center horizontally in Firefox * fix(components/status_list): Do not remove load more button
This commit is contained in:
parent
1896a154f5
commit
72bd73f605
3 changed files with 10 additions and 6 deletions
|
@ -101,13 +101,9 @@ export default class StatusList extends ImmutablePureComponent {
|
|||
render () {
|
||||
const { statusIds, scrollKey, trackScroll, shouldUpdateScroll, isLoading, hasMore, prepend, emptyMessage } = this.props;
|
||||
|
||||
let loadMore = null;
|
||||
const loadMore = <LoadMore visible={!isLoading && statusIds.size > 0 && hasMore} onClick={this.handleLoadMore} />;
|
||||
let scrollableArea = null;
|
||||
|
||||
if (!isLoading && statusIds.size > 0 && hasMore) {
|
||||
loadMore = <LoadMore onClick={this.handleLoadMore} />;
|
||||
}
|
||||
|
||||
if (isLoading || statusIds.size > 0 || !emptyMessage) {
|
||||
scrollableArea = (
|
||||
<div className='scrollable' ref={this.setRef}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue