Commit Graph

14 Commits (1efd22689614d5e91151e712e172fea13229954f)

Author SHA1 Message Date
Travis Ralston c5c58a5e91 Add file size to tooltip 2021-07-30 08:56:55 -06:00
Travis Ralston a8ec8f4c4b Appease the linter 2021-07-29 16:03:08 -06:00
Travis Ralston b1090a35b5 Use new getter for content in MFileBody 2021-07-29 16:03:03 -06:00
Travis Ralston ac1014ae3f Fix file name not ellipsizing
Turns out the tooltip component doesn't copy over class names.
2021-07-29 16:02:58 -06:00
Travis Ralston 15f6c6300a Improve general style per design direction 2021-07-29 16:02:53 -06:00
Travis Ralston bde2f757aa Unify and improve download interactions
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.
2021-07-29 16:02:46 -06:00
Travis Ralston 3023fda497 Make MFileBody inherit the MediaBody styles 2021-07-21 14:46:25 -06:00
Šimon Brandner e8760736ba
Merge remote-tracking branch 'upstream/develop' into fix/file-label-behaviour
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-21 15:33:06 +02:00
Travis Ralston 7892539a9b delint 2021-07-20 09:03:26 -06:00
Travis Ralston 4d38218e24 Appease the linter 2021-07-16 16:11:27 -06:00
Travis Ralston b57fff5739 Update visual style and sandbox properly 2021-07-16 15:55:07 -06:00
Travis Ralston 623f2e7613 Only show download link below media if it's not in the timeline 2021-07-16 15:12:36 -06:00
Travis Ralston d156a56603 Share body prop types with an interface 2021-07-16 15:12:36 -06:00
Travis Ralston ea7513fc16 Convert MFileBody to TS and use media helper 2021-07-16 15:12:36 -06:00