You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
FORCED_IMAGE_HEIGHT into a const
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -20,6 +20,8 @@ import { presentableTextForFile } from "./MFileBody";
|
|||||||
import { IMediaEventContent } from "../../../customisations/models/IMediaEventContent";
|
import { IMediaEventContent } from "../../../customisations/models/IMediaEventContent";
|
||||||
import SenderProfile from "./SenderProfile";
|
import SenderProfile from "./SenderProfile";
|
||||||
|
|
||||||
|
const FORCED_IMAGE_HEIGHT = 44;
|
||||||
|
|
||||||
export default class MImageReplyBody extends MImageBody {
|
export default class MImageReplyBody extends MImageBody {
|
||||||
public onClick = (ev: React.MouseEvent): void => {
|
public onClick = (ev: React.MouseEvent): void => {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
@@ -42,7 +44,7 @@ export default class MImageReplyBody extends MImageBody {
|
|||||||
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
||||||
|
|
||||||
const contentUrl = this.getContentUrl();
|
const contentUrl = this.getContentUrl();
|
||||||
const thumbnail = this.messageContent(contentUrl, this.getThumbUrl(), content, 44);
|
const thumbnail = this.messageContent(contentUrl, this.getThumbUrl(), content, FORCED_IMAGE_HEIGHT);
|
||||||
const fileBody = this.getFileBody();
|
const fileBody = this.getFileBody();
|
||||||
const sender = <SenderProfile
|
const sender = <SenderProfile
|
||||||
mxEvent={this.props.mxEvent}
|
mxEvent={this.props.mxEvent}
|
||||||
|
|||||||
Reference in New Issue
Block a user