Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fe51444

Browse files
Tweak read receipt remainder text
1 parent df9186e commit fe51444

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/rooms/EventTile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import {ALL_RULE_TYPES} from "../../../mjolnir/BanList";
3434
import * as ObjectUtils from "../../../ObjectUtils";
3535
import MatrixClientContext from "../../../contexts/MatrixClientContext";
3636
import {E2E_STATE} from "./E2EIcon";
37+
import torem from "../../../utils/rem";
3738

3839
const eventTileTypes = {
3940
'm.room.message': 'messages.MessageEvent',
@@ -473,7 +474,7 @@ export default createReactClass({
473474
if (remainder > 0) {
474475
remText = <span className="mx_EventTile_readAvatarRemainder"
475476
onClick={this.toggleAllReadAvatars}
476-
style={{ right: -(left - receiptOffset) }}>{ remainder }+
477+
style={{ right: "calc(" + torem(-left) + " + " + receiptOffset + "px)" }}>{ remainder }+
477478
</span>;
478479
}
479480
}

0 commit comments

Comments
 (0)