mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Use MFileBody in replies
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
18355599e8
commit
586e85cbff
2 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,10 @@ limitations under the License.
|
||||||
font-size: $font-14px;
|
font-size: $font-14px;
|
||||||
position: relative;
|
position: relative;
|
||||||
line-height: $font-16px;
|
line-height: $font-16px;
|
||||||
|
|
||||||
|
.mx_MFileBody_info {
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_ReplyTile > a {
|
.mx_ReplyTile > a {
|
||||||
|
|
|
@ -27,6 +27,7 @@ import * as sdk from '../../../index';
|
||||||
import { EventType, MsgType } from 'matrix-js-sdk/src/@types/event';
|
import { EventType, MsgType } from 'matrix-js-sdk/src/@types/event';
|
||||||
import { replaceableComponent } from '../../../utils/replaceableComponent';
|
import { replaceableComponent } from '../../../utils/replaceableComponent';
|
||||||
import { getEventDisplayInfo } from '../../../utils/EventUtils';
|
import { getEventDisplayInfo } from '../../../utils/EventUtils';
|
||||||
|
import MFileBody from "../messages/MFileBody";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
mxEvent: MatrixEvent;
|
mxEvent: MatrixEvent;
|
||||||
|
@ -116,7 +117,7 @@ export default class ReplyTile extends React.PureComponent<IProps> {
|
||||||
const msgtypeOverrides = {
|
const msgtypeOverrides = {
|
||||||
[MsgType.Image]: MImageReplyBody,
|
[MsgType.Image]: MImageReplyBody,
|
||||||
// We don't want a download link for files, just the file name is enough.
|
// We don't want a download link for files, just the file name is enough.
|
||||||
[MsgType.File]: TextualBody,
|
[MsgType.File]: MFileBody,
|
||||||
[MsgType.Audio]: TextualBody,
|
[MsgType.Audio]: TextualBody,
|
||||||
[MsgType.Video]: TextualBody,
|
[MsgType.Video]: TextualBody,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue