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
Fix file name not ellipsizing
Turns out the tooltip component doesn't copy over class names.
This commit is contained in:
@@ -203,11 +203,10 @@ 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
|
<TextWithTooltip tooltip={presentableTextForFile(content, _t("Attachment"), false)}>
|
||||||
className="mx_MFileBody_info_filename"
|
<span className="mx_MFileBody_info_filename">
|
||||||
tooltip={presentableTextForFile(content, _t("Attachment"), false)}
|
{ presentableTextForFile(content, _t("Attachment"), true, true) }
|
||||||
>
|
</span>
|
||||||
{ presentableTextForFile(content, _t("Attachment"), true, true) }
|
|
||||||
</TextWithTooltip>
|
</TextWithTooltip>
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user