Fix read receipt horizontal spacing at scale

pull/21833/head
Jorik Schellekens 2020-04-06 16:51:07 +01:00
parent 3f56ed393d
commit ff1544b783
1 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import { _t } from '../../../languageHandler';
import {formatDate} from '../../../DateUtils'; import {formatDate} from '../../../DateUtils';
import Velociraptor from "../../../Velociraptor"; import Velociraptor from "../../../Velociraptor";
import * as sdk from "../../../index"; import * as sdk from "../../../index";
import toRem from "../../../utils/rem";
let bounce = false; let bounce = false;
try { try {
@ -148,7 +149,7 @@ export default createReactClass({
// start at the old height and in the old h pos // start at the old height and in the old h pos
startStyles.push({ top: startTopOffset+"px", startStyles.push({ top: startTopOffset+"px",
left: oldInfo.left+"px" }); left: toRem(oldInfo.left) });
const reorderTransitionOpts = { const reorderTransitionOpts = {
duration: 100, duration: 100,
@ -181,7 +182,7 @@ export default createReactClass({
} }
const style = { const style = {
left: this.props.leftOffset+'px', left: toRem(this.props.leftOffset),
top: '0px', top: '0px',
visibility: this.props.hidden ? 'hidden' : 'visible', visibility: this.props.hidden ? 'hidden' : 'visible',
}; };