You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Add file size to tooltip
This commit is contained in:
@@ -202,7 +202,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
|
|||||||
placeholder = (
|
placeholder = (
|
||||||
<AccessibleButton className="mx_MediaBody mx_MFileBody_info" onClick={this.onPlaceholderClick}>
|
<AccessibleButton className="mx_MediaBody mx_MFileBody_info" onClick={this.onPlaceholderClick}>
|
||||||
<span className="mx_MFileBody_info_icon" />
|
<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">
|
<span className="mx_MFileBody_info_filename">
|
||||||
{ presentableTextForFile(this.content, _t("Attachment"), true, true) }
|
{ presentableTextForFile(this.content, _t("Attachment"), true, true) }
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user