mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 01:11:52 +02:00
Fix file name not ellipsizing
Turns out the tooltip component doesn't copy over class names.
This commit is contained in:
parent
c322761abb
commit
bb1b2d10c8
@ -203,11 +203,10 @@ 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
|
||||
className="mx_MFileBody_info_filename"
|
||||
tooltip={presentableTextForFile(content, _t("Attachment"), false)}
|
||||
>
|
||||
{ presentableTextForFile(content, _t("Attachment"), true, true) }
|
||||
<TextWithTooltip tooltip={presentableTextForFile(content, _t("Attachment"), false)}>
|
||||
<span className="mx_MFileBody_info_filename">
|
||||
{ presentableTextForFile(content, _t("Attachment"), true, true) }
|
||||
</span>
|
||||
</TextWithTooltip>
|
||||
</AccessibleButton>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user