You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
@@ -124,14 +124,6 @@ export default class ImageView extends React.Component {
|
||||
});
|
||||
};
|
||||
|
||||
getName() {
|
||||
let name = this.props.name;
|
||||
if (name && this.props.link) {
|
||||
name = <a href={ this.props.link } target="_blank" rel="noreferrer noopener">{ name }</a>;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
onRotateCounterClockwiseClick = () => {
|
||||
const cur = this.state.rotation;
|
||||
const rotationDegrees = (cur - 90) % 360;
|
||||
@@ -286,9 +278,6 @@ export default class ImageView extends React.Component {
|
||||
<div className="mx_ImageView_content">
|
||||
<div className="mx_ImageView_panel">
|
||||
<div className="mx_ImageView_label">
|
||||
<div className="mx_ImageView_name">
|
||||
{ this.getName() }
|
||||
</div>
|
||||
<span>{ sizeRes }</span>
|
||||
{ metadata }
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user