mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
show images with unknown height - fixes issue 475 hopefully
This commit is contained in:
parent
4b8d7a612a
commit
8ecf70dda0
@ -105,6 +105,11 @@ module.exports = React.createClass({
|
|||||||
res = ", " + style.width + "x" + style.height + "px";
|
res = ", " + style.width + "x" + style.height + "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var size;
|
||||||
|
if (this.props.mxEvent.getContent().info && this.props.mxEvent.getContent().info.size) {
|
||||||
|
size = filesize(this.props.mxEvent.getContent().info.size);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_ImageView">
|
<div className="mx_ImageView">
|
||||||
<div className="mx_ImageView_lhs">
|
<div className="mx_ImageView_lhs">
|
||||||
@ -124,7 +129,7 @@ module.exports = React.createClass({
|
|||||||
<a className="mx_ImageView_link" href={ this.props.src } target="_blank">
|
<a className="mx_ImageView_link" href={ this.props.src } target="_blank">
|
||||||
<div className="mx_ImageView_download">
|
<div className="mx_ImageView_download">
|
||||||
Download this file<br/>
|
Download this file<br/>
|
||||||
<span className="mx_ImageView_size">({ filesize(this.props.mxEvent.getContent().info.size) }{ res })</span>
|
<span className="mx_ImageView_size">{ size } { res }</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div className="mx_ImageView_button">
|
<div className="mx_ImageView_button">
|
||||||
|
Loading…
Reference in New Issue
Block a user