You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Fix expanding/unexapnding read receipts
Make the AccessibleButton element be the img directly rather than wrapping it in a div which is unnecessary and breaks the rendering. Fixes https://github.com/vector-im/riot-web/issues/3052
This commit is contained in:
@@ -159,13 +159,14 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
if (onClick != null) {
|
if (onClick != null) {
|
||||||
return (
|
return (
|
||||||
<AccessibleButton className="mx_BaseAvatar" onClick={onClick}>
|
<AccessibleButton className="mx_BaseAvatar mx_BaseAvatar_image"
|
||||||
<img className="mx_BaseAvatar_image" src={imageUrl}
|
element='img'
|
||||||
onError={this.onError}
|
src={imageUrl}
|
||||||
width={width} height={height}
|
onClick={onClick}
|
||||||
title={title} alt=""
|
onError={this.onError}
|
||||||
{...otherProps} />
|
width={width} height={height}
|
||||||
</AccessibleButton>
|
title={title} alt=""
|
||||||
|
{...otherProps} />
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -192,9 +192,9 @@ module.exports = React.createClass({
|
|||||||
width={14} height={14} resizeMethod="crop"
|
width={14} height={14} resizeMethod="crop"
|
||||||
style={style}
|
style={style}
|
||||||
title={title}
|
title={title}
|
||||||
|
onClick={this.props.onClick}
|
||||||
/>
|
/>
|
||||||
</Velociraptor>
|
</Velociraptor>
|
||||||
);
|
);
|
||||||
/* onClick={this.props.onClick} */
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user