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
|
@ -6,11 +6,18 @@ export default class LoadMore extends React.PureComponent {
|
|||
|
||||
static propTypes = {
|
||||
onClick: PropTypes.func,
|
||||
visible: PropTypes.bool,
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
visible: true,
|
||||
}
|
||||
|
||||
render() {
|
||||
const { visible } = this.props;
|
||||
|
||||
return (
|
||||
<button className='load-more' onClick={this.props.onClick}>
|
||||
<button className='load-more' disabled={!visible} style={{ opacity: visible ? 1 : 0 }} onClick={this.props.onClick}>
|
||||
<FormattedMessage id='status.load_more' defaultMessage='Load more' />
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue