You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update read receipt remainder for internal font size change
In https://github.com/matrix-org/matrix-react-sdk/pull/4725, we changed the internal font size from 15 to 10, but the `toRem` function (currently only used for read receipts remainders curiously) was not updated. This updates the function, which restores the remainders. Fixes https://github.com/vector-im/riot-web/issues/14127
This commit is contained in:
@@ -19,7 +19,7 @@ limitations under the License.
|
||||
|
||||
// converts a pixel value to rem.
|
||||
export function toRem(pixelValue: number): string {
|
||||
return pixelValue / 15 + "rem";
|
||||
return pixelValue / 10 + "rem";
|
||||
}
|
||||
|
||||
export function toPx(pixelValue: number): string {
|
||||
|
||||
Reference in New Issue
Block a user