mirror of https://github.com/vector-im/riot-web
Fix not being able to open avatars in lightbox (#8598)
parent
eb10c3647b
commit
b54c7d8faf
src/components/views/elements
|
@ -535,6 +535,15 @@ export default class ImageView extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let title: JSX.Element;
|
||||||
|
if (this.props.mxEvent?.getContent()) {
|
||||||
|
title = (
|
||||||
|
<div className="mx_ImageView_title">
|
||||||
|
{ presentableTextForFile(this.props.mxEvent?.getContent(), _t("Image"), true) }
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FocusLock
|
<FocusLock
|
||||||
returnFocus={true}
|
returnFocus={true}
|
||||||
|
@ -547,9 +556,7 @@ export default class ImageView extends React.Component<IProps, IState> {
|
||||||
>
|
>
|
||||||
<div className="mx_ImageView_panel">
|
<div className="mx_ImageView_panel">
|
||||||
{ info }
|
{ info }
|
||||||
<div className="mx_ImageView_title">
|
{ title }
|
||||||
{ presentableTextForFile(this.props.mxEvent.getContent(), _t("Image"), true) }
|
|
||||||
</div>
|
|
||||||
<div className="mx_ImageView_toolbar">
|
<div className="mx_ImageView_toolbar">
|
||||||
{ zoomOutButton }
|
{ zoomOutButton }
|
||||||
{ zoomInButton }
|
{ zoomInButton }
|
||||||
|
|
Loading…
Reference in New Issue