forked from matrix/element-web
document properties and remove spurious 'view full screen' button
This commit is contained in:
parent
d414127f80
commit
333f1e46ca
|
@ -27,6 +27,10 @@ module.exports = React.createClass({
|
||||||
displayName: 'ImageView',
|
displayName: 'ImageView',
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
|
mxEvent: React.PropTypes.object,
|
||||||
|
src: React.PropTypes.string.isRequired,
|
||||||
|
width: React.PropTypes.number,
|
||||||
|
height: React.PropTypes.number,
|
||||||
onFinished: React.PropTypes.func.isRequired,
|
onFinished: React.PropTypes.func.isRequired,
|
||||||
name: React.PropTypes.string
|
name: React.PropTypes.string
|
||||||
},
|
},
|
||||||
|
@ -164,11 +168,6 @@ module.exports = React.createClass({
|
||||||
<span className="mx_ImageView_size">{ size } { res }</span>
|
<span className="mx_ImageView_size">{ size } { res }</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div className="mx_ImageView_button">
|
|
||||||
<a className="mx_ImageView_link" href={ this.props.src } target="_blank">
|
|
||||||
View full screen
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{ eventRedact }
|
{ eventRedact }
|
||||||
<div className="mx_ImageView_shim">
|
<div className="mx_ImageView_shim">
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue