tidy code style

pull/21833/head
Michael Telatynski 2021-03-03 13:42:44 +00:00
parent 43cc7deeda
commit 73411fa53d
1 changed files with 8 additions and 4 deletions

View File

@ -157,10 +157,12 @@ const SubSpace: React.FC<ISubspaceProps> = ({
let url: string;
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),
"crop");
"crop",
);
}
return <div className="mx_SpaceRoomDirectory_subspace">
@ -262,10 +264,12 @@ const RoomTile = ({ room, event, editing, queueAction, onPreviewClick, onJoinCli
let url: string;
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),
"crop");
"crop",
);
}
const content = <React.Fragment>