Commit graph

50 commits

Author SHA1 Message Date
Šimon Brandner
ab79deb88f
Update the looks a bit more
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 08:11:53 +01:00
Šimon Brandner
497131874b
Remove size info
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 07:53:33 +01:00
Šimon Brandner
05e9019bc9
Remove name
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 07:50:10 +01:00
Šimon Brandner
d85ab382f5
Reorganize elements
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-24 07:47:59 +01:00
Šimon Brandner
6cf19e8897
Update icons according to the design
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 21:04:21 +01:00
Šimon Brandner
35663c35d2
Reorder the icons according to the design
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 20:49:31 +01:00
Šimon Brandner
e5d68142c6
Remove zoom icon
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-02-23 20:47:42 +01:00
Šimon Brandner
997e08f21e Reorganize buttons
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-21 10:07:46 +01:00
Šimon Brandner
f771b7ac98 Added zoom button
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:37:31 +01:00
Šimon Brandner
3d62138cbd Set max zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:28:19 +01:00
Šimon Brandner
096fb33397 Always allow moving
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:19:32 +01:00
Šimon Brandner
61c5e7e8f1 Reorder label items
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:15:39 +01:00
Šimon Brandner
f0abd52130 Remove the need to press ctrl while zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:09:01 +01:00
Šimon Brandner
776b0e8198 Change comment styling
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:05:27 +01:00
Šimon Brandner
18de342fa1 Fixed translation issue while the image is rotated
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 20:00:11 +01:00
Šimon Brandner
6758734593 Remove panel element
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 19:48:24 +01:00
Šimon Brandner
7dd7aeffed Remove imageBox
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 18:19:11 +01:00
Šimon Brandner
f9884b1cc7 Implement translation
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 17:40:16 +01:00
Šimon Brandner
be9b68a4dd Use height and width properties for scaling again
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 10:07:03 +01:00
Šimon Brandner
ec5fcaf59b Added a comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-20 09:51:57 +01:00
Šimon Brandner
ae25ff8216 Switched to scale
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 15:54:26 +01:00
Šimon Brandner
2c5f3f31b1 Fixed Chromium issues - made listner non-passive
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 13:30:56 +01:00
Šimon Brandner
3c306bc54b Added icons
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 12:54:55 +01:00
Šimon Brandner
2040815f66 Implement zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 10:20:15 +01:00
Šimon Brandner
8aabe1f330 Reorganized elements
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-19 09:26:09 +01:00
Michael Telatynski
d02a18bfff Apply FocusLock to ImageView to capture Escape handling
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-29 01:44:09 +01:00
Michael Telatynski
5402839f30 Close ImageView when
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-08 00:15:48 +01:00
Travis Ralston
846170b371 Revert "Fix downloading files in electron not being sent into browser"
This reverts commit d89b8b5148.
2020-03-03 13:33:07 -07:00
Michael Telatynski
d783ce86c8 Use noreferrer in addition to noopener for edge case browsers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-23 22:14:29 +00:00
Michael Telatynski
d89b8b5148 Fix downloading files in electron not being sent into browser
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-23 22:10:36 +00:00
Travis Ralston
3e5cc9550b Fix import merge conflicts, removing any that aren't needed anymore
Many imports were removed as part of refactoring work, so here we are.
2020-01-09 14:17:33 -07:00
Travis Ralston
fde32f13a5 [CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop 2020-01-09 14:15:09 -07:00
Travis Ralston
f1ac3d2f64 Convert imports to ES6 from CommonJS
This is needed because `require()` means something different in webpack - it ends up importing the module as something we didn't expect (and is occasionally async)
2019-12-22 21:16:06 -07:00
Travis Ralston
042bd35d79 Fix MatrixClientPeg imports 2019-12-22 21:15:54 -07:00
Michael Telatynski
d28a892bb0 Stop using KeyboardEvent.keyCode as it is deprecated 2019-12-16 17:14:03 +00:00
Michael Telatynski
d4d51dc61f Rip out the remainder of Bluebird 2019-11-18 10:03:05 +00:00
Michael Telatynski
168b1b68bb Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"
This reverts commit 09a8fec2
2019-11-12 11:56:21 +00:00
Michael Telatynski
09a8fec261 s/.done(/.then(/ since modern es6 track unhandled promise exceptions 2019-11-12 11:51:23 +00:00
Michael Telatynski
1087e04bb5 Replace React.PropTypes with usage of the prop-types package
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-31 12:19:29 +01:00
Michael Telatynski
6b9c6a31f0 Don't show Remove button in ImageView if can't redact, delint ImageView
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-06 10:42:14 +01:00
Aaron Raimist
c38b5cabb1
Allow the strings to be translated
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-05-15 22:11:51 -05:00
Aaron Raimist
bfd37d8089
Add tooltips to rotate and close buttons in ImageView (#9686)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-05-15 22:06:02 -05:00
Travis Ralston
6722451207
semicolon 2019-04-04 09:36:45 -06:00
YaoiFangirl420
1cbbe5f31f Add i18n and fix method declaration
Add i18n entries for rotating images; fix the way `getName` is defined

Signed-off-by: YaoiFangirl420 <48789208+YaoiFangirl420@users.noreply.github.com>
2019-04-04 02:27:58 -07:00
YaoiFangirl420
9bd1ba60f5 Add option to rotate images
cf. https://github.com/vector-im/riot-web/issues/9257

Add rotate clockwise/counterclockwise buttons to <ImageView>

Signed-off-by: YaoiFangirl420 <48789208+YaoiFangirl420@users.noreply.github.com>
2019-04-04 01:48:41 -07:00
Travis Ralston
fc28f094fe Set title attribute on images in lightbox
Part of https://github.com/vector-im/riot-web/issues/9324
2019-03-29 14:55:56 -06:00
J. Ryan Stinnett
20e296b20e Convert image URLs in React to require calls
This allows Webpack to insert the proper image URL after builds steps like
adding a hash and so on. The path you supply to `require` is relative to the JS
source file, just like any other would be.
2019-01-17 22:06:49 -06:00
Aaron Raimist
49ce4ef117
eslint --fix src/
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2018-10-26 22:50:38 -05:00
Matthew Hodgson
40a67ca8fe point imports at the new locations 2018-04-13 00:43:44 +01:00
Matthew Hodgson
8ab8f76254 move non-Riot-specific components over from riot-web 2018-04-11 23:58:04 +01:00