Add file size to tooltip

This commit is contained in:
Travis Ralston 2021-07-30 08:56:55 -06:00
parent 761fb6e1d5
commit bfd96b7e58

View file

@ -202,7 +202,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
placeholder = (
<AccessibleButton className="mx_MediaBody mx_MFileBody_info" onClick={this.onPlaceholderClick}>
<span className="mx_MFileBody_info_icon" />
<TextWithTooltip tooltip={presentableTextForFile(this.content, _t("Attachment"), false)}>
<TextWithTooltip tooltip={presentableTextForFile(this.content, _t("Attachment"), true)}>
<span className="mx_MFileBody_info_filename">
{ presentableTextForFile(this.content, _t("Attachment"), true, true) }
</span>