Skip to content

Commit 512a912

Browse files
committed
fix zalgos in SenderProfile again, whilst maintaining limited-width name via inline-block. and without doubling emote vertical space...
1 parent 00a9245 commit 512a912

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/views/messages/SenderProfile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = React.createClass({
3333

3434
var msgtype = mxEvent.getContent().msgtype;
3535
if (msgtype && msgtype == 'm.emote') {
36-
name = ''; // emote message must include the name so don't duplicate it
36+
return <span/>; // emote message must include the name so don't duplicate it
3737
}
3838
return (
3939
<span className="mx_SenderProfile" onClick={this.props.onClick}>

‎src/skins/vector/css/matrix-react-sdk/views/rooms/EventTile.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ limitations under the License.
3939
.mx_EventTile .mx_SenderProfile {
4040
color: #454545;
4141
opacity: 0.5;
42+
display: inline-block;
4243
font-size: 13px;
4344
overflow-y: hidden;
4445
cursor: pointer;
45-
vertical-align: text-top;
4646
}
4747

4848
.mx_EventTile .mx_MessageTimestamp {

0 commit comments

Comments
 (0)