mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Remove size info
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
05e9019bc9
commit
497131874b
1 changed files with 0 additions and 19 deletions
|
@ -20,7 +20,6 @@ import PropTypes from 'prop-types';
|
|||
import {MatrixClientPeg} from "../../../MatrixClientPeg";
|
||||
import {formatDate} from '../../../DateUtils';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import filesize from "filesize";
|
||||
import AccessibleButton from "./AccessibleButton";
|
||||
import Modal from "../../../Modal";
|
||||
import * as sdk from "../../../index";
|
||||
|
@ -204,23 +203,6 @@ export default class ImageView extends React.Component {
|
|||
let mayRedact = false;
|
||||
const showEventMeta = !!this.props.mxEvent;
|
||||
|
||||
let res;
|
||||
if (this.props.width && this.props.height) {
|
||||
res = this.props.width + "x" + this.props.height + "px";
|
||||
}
|
||||
|
||||
let size;
|
||||
if (this.props.fileSize) {
|
||||
size = filesize(this.props.fileSize);
|
||||
}
|
||||
|
||||
let sizeRes;
|
||||
if (size && res) {
|
||||
sizeRes = size + ", " + res;
|
||||
} else {
|
||||
sizeRes = size || res;
|
||||
}
|
||||
|
||||
let metadata;
|
||||
if (showEventMeta) {
|
||||
// Figure out the sender, defaulting to mxid
|
||||
|
@ -278,7 +260,6 @@ export default class ImageView extends React.Component {
|
|||
<div className="mx_ImageView_content">
|
||||
<div className="mx_ImageView_panel">
|
||||
<div className="mx_ImageView_label">
|
||||
<span>{ sizeRes }</span>
|
||||
{ metadata }
|
||||
</div>
|
||||
<div className="mx_ImageView_toolbar">
|
||||
|
|
Loading…
Reference in a new issue