Optimized style
This commit is contained in:
parent
21cf3592cf
commit
9b495eeec3
1 changed files with 4 additions and 4 deletions
|
@ -119,15 +119,15 @@ export default class EventTilePreview extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
public render() {
|
||||
if (!this.props.userId) return <div style={{ paddingTop: '9px' }}><InlineSpinner /></div>;
|
||||
|
||||
const event = this.fakeEvent(this.state);
|
||||
|
||||
const className = classnames(this.props.className, {
|
||||
"mx_IRCLayout": this.props.layout == Layout.IRC,
|
||||
"mx_GroupLayout": this.props.layout == Layout.Group,
|
||||
});
|
||||
|
||||
if (!this.props.userId) return <div className={className} style={{ paddingTop: '9px 0' }}><InlineSpinner /></div>;
|
||||
|
||||
const event = this.fakeEvent(this.state);
|
||||
|
||||
return <div className={className}>
|
||||
<EventTile
|
||||
mxEvent={event}
|
||||
|
|
Loading…
Reference in a new issue