Optimized style

This commit is contained in:
Steffen Kolmer 2021-08-27 20:10:01 +02:00
parent 21cf3592cf
commit 9b495eeec3

View file

@ -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}