1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

tidy code style

This commit is contained in:
Michael Telatynski
2021-03-03 13:42:44 +00:00
parent 43cc7deeda
commit 73411fa53d

View File

@@ -157,10 +157,12 @@ const SubSpace: React.FC<ISubspaceProps> = ({
let url: string; let url: string;
if (space.avatar_url) { if (space.avatar_url) {
url = MatrixClientPeg.get().mxcUrlToHttp(space.avatar_url, url = MatrixClientPeg.get().mxcUrlToHttp(
space.avatar_url,
Math.floor(24 * window.devicePixelRatio), Math.floor(24 * window.devicePixelRatio),
Math.floor(24 * window.devicePixelRatio), Math.floor(24 * window.devicePixelRatio),
"crop"); "crop",
);
} }
return <div className="mx_SpaceRoomDirectory_subspace"> return <div className="mx_SpaceRoomDirectory_subspace">
@@ -262,10 +264,12 @@ const RoomTile = ({ room, event, editing, queueAction, onPreviewClick, onJoinCli
let url: string; let url: string;
if (room.avatar_url) { if (room.avatar_url) {
url = cli.mxcUrlToHttp(room.avatar_url, url = cli.mxcUrlToHttp(
room.avatar_url,
Math.floor(32 * window.devicePixelRatio), Math.floor(32 * window.devicePixelRatio),
Math.floor(32 * window.devicePixelRatio), Math.floor(32 * window.devicePixelRatio),
"crop"); "crop",
);
} }
const content = <React.Fragment> const content = <React.Fragment>