apply mx_EventTile_content to editor, so it gets the same right margin
this way we don't have to include it in the magic number
This commit is contained in:
parent
2bacabc002
commit
b00a38a1e5
3 changed files with 6 additions and 4 deletions
|
@ -27,6 +27,7 @@ import Autocomplete from '../rooms/Autocomplete';
|
|||
import {PartCreator} from '../../../editor/parts';
|
||||
import {renderModel} from '../../../editor/render';
|
||||
import {MatrixEvent, MatrixClient} from 'matrix-js-sdk';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export default class MessageEditor extends React.Component {
|
||||
static propTypes = {
|
||||
|
@ -177,7 +178,7 @@ export default class MessageEditor extends React.Component {
|
|||
</div>;
|
||||
}
|
||||
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
||||
return <div className="mx_MessageEditor">
|
||||
return <div className={classNames("mx_MessageEditor", this.props.className)}>
|
||||
{ autoComplete }
|
||||
<div
|
||||
className="mx_MessageEditor_editor"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue