Fix review problems
- removed superfluous position and classes - fixed compact view - fixed event list summary avatar and text overlap - fixed a problem where the mention list refuses to load.
This commit is contained in:
parent
5c2abcf1a4
commit
17f535e5f8
7 changed files with 88 additions and 87 deletions
|
@ -822,7 +822,7 @@ export default class MessagePanel extends React.Component {
|
|||
|
||||
let ircResizer = null;
|
||||
if (this.state.useIRCLayout) {
|
||||
ircResizer = <IRCTimelineProfileResizer minWidth={20} maxWidth={600} roomId={this.props.room.roomId} />;
|
||||
ircResizer = <IRCTimelineProfileResizer minWidth={20} maxWidth={600} roomId={this.props.room ? this.props.roomroomId : null} />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -73,7 +73,7 @@ export default class ErrorBoundary extends React.PureComponent {
|
|||
if (this.state.error) {
|
||||
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
|
||||
const newIssueUrl = "https://github.com/vector-im/riot-web/issues/new";
|
||||
return <div className="mx_ErrorBoundary mx_IRCLayout">
|
||||
return <div className="mx_ErrorBoundary">
|
||||
<div className="mx_ErrorBoundary_body">
|
||||
<h1>{_t("Something went wrong!")}</h1>
|
||||
<p>{_t(
|
||||
|
|
|
@ -77,7 +77,9 @@ export default class IRCTimelineProfileResizer extends React.Component<IProps, I
|
|||
}
|
||||
|
||||
private onMoueUp(event: MouseEvent) {
|
||||
SettingsStore.setValue("ircDisplayNameWidth", this.props.roomId, SettingLevel.ROOM_DEVICE, this.state.width);
|
||||
if (this.props.roomId) {
|
||||
SettingsStore.setValue("ircDisplayNameWidth", this.props.roomId, SettingLevel.ROOM_DEVICE, this.state.width);
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
@ -659,8 +659,6 @@ export default createReactClass({
|
|||
const classes = classNames({
|
||||
mx_EventTile_bubbleContainer: isBubbleMessage,
|
||||
mx_EventTile: true,
|
||||
mx_EventTile_irc: this.props.useIRCLayout,
|
||||
mx_EventTile_group: !this.props.useIRCLayout,
|
||||
mx_EventTile_isEditing: isEditing,
|
||||
mx_EventTile_info: isInfoMessage,
|
||||
mx_EventTile_12hr: this.props.isTwelveHour,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue