mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
fb89b45c06
With help from Palid. This does two major things: 1. Makes the tile part of a file body clickable to trigger a download. 2. Refactors a lot of the recyclable code out of the DownloadActionButton in favour of a utility. It's not a perfect refactoring, but it sets the stage for future work in the area (if needed). The refactoring still has a heavy reliance on being supplied an iframe, but simplifies the DownloadActionButton and a hair of the MFileBody download code. In future, we'd probably want to make the iframe completely managed by the FileDownloader rather than have it only sometimes manage a hidden iframe. |
||
---|---|---|
.. | ||
_CallEvent.scss | ||
_common_CryptoEvent.scss | ||
_CreateEvent.scss | ||
_DateSeparator.scss | ||
_EventTileBubble.scss | ||
_MediaBody.scss | ||
_MEmoteBody.scss | ||
_MessageActionBar.scss | ||
_MessageTimestamp.scss | ||
_MFileBody.scss | ||
_MImageBody.scss | ||
_MImageReplyBody.scss | ||
_MJitsiWidgetEvent.scss | ||
_MjolnirBody.scss | ||
_MNoticeBody.scss | ||
_MStickerBody.scss | ||
_MTextBody.scss | ||
_MVideoBody.scss | ||
_ReactionsRow.scss | ||
_ReactionsRowButton.scss | ||
_RedactedBody.scss | ||
_RoomAvatarEvent.scss | ||
_SenderProfile.scss | ||
_TextualEvent.scss | ||
_UnknownBody.scss | ||
_ViewSourceEvent.scss |