Commit Graph

70249 Commits

Author SHA1 Message Date
Michael Telatynski 915f8b3c9c Scale all mxc thumbs using device pixel ratio for hidpi
as we are notoriously bad at doing it everywhere we ought to, like the TopLeftMenu avatar
2021-04-26 18:25:49 +01:00
Michael Telatynski 0d538c490a Merge pull request #5921 from matrix-org/t3chguy/fix/17063
Autofocus search box in the add existing to space dialog
2021-04-26 18:24:14 +01:00
RiotRobot 7f24661357 Merge branch 'master' into develop 2021-04-26 18:13:06 +01:00
RiotRobot c19baadcd3 v1.7.26 2021-04-26 18:12:16 +01:00
RiotRobot ada58f826a Prepare changelog for v1.7.26 2021-04-26 18:12:15 +01:00
Michael Telatynski e675448062 Merge pull request #5922 from matrix-org/t3chguy/fix/17062
Use label element in add existing to space dialog for easier hit target
2021-04-26 18:10:00 +01:00
RiotRobot 4b3ba43f38 Reset matrix-react-sdk back to develop branch 2021-04-26 18:05:19 +01:00
RiotRobot 7e6ce7fb76 Reset matrix-js-sdk back to develop branch 2021-04-26 18:04:54 +01:00
RiotRobot 5c126cb61e Merge branch 'master' into develop 2021-04-26 18:04:04 +01:00
RiotRobot 6d056d7a08 v1.7.26 v1.7.26 2021-04-26 17:55:54 +01:00
RiotRobot d22e1fff16 Prepare changelog for v1.7.26 2021-04-26 17:55:53 +01:00
RiotRobot 0c8fee3528 Upgrade matrix-react-sdk to 3.19.0 2021-04-26 17:52:34 +01:00
RiotRobot 535ca49479 Upgrade matrix-js-sdk to 10.0.0 2021-04-26 17:51:43 +01:00
RiotRobot 3817aaeaca Reset matrix-js-sdk back to develop branch 2021-04-26 17:50:40 +01:00
RiotRobot c3f9bce016 Resetting package fields for development 2021-04-26 17:50:19 +01:00
RiotRobot 2b155427bd Merge branch 'master' into develop 2021-04-26 17:49:39 +01:00
RiotRobot 87e3ad303f v3.19.0 2021-04-26 17:47:10 +01:00
RiotRobot a6e790aa1d Prepare changelog for v3.19.0 2021-04-26 17:47:09 +01:00
RiotRobot a79b0e9327 Upgrade matrix-js-sdk to 10.0.0 2021-04-26 17:42:04 +01:00
J. Ryan Stinnett af14f83358 Merge pull request #5927 from matrix-org/jryans/image-view-zoom-release
[Release] Dynamic max and min zoom in the new ImageView
2021-04-26 17:27:05 +01:00
Germain Souquet 46b1015478 Fix typo in _t function declaration 2021-04-26 17:14:55 +01:00
J. Ryan Stinnett 417f662ea7 Remove redundant parameter initialisers 2021-04-26 17:12:31 +01:00
Germain Souquet 8ae641bc59 Set appropriate appMenu submenu role 2021-04-26 17:12:13 +01:00
Besnik Bleta 3cd1a28a1d Translated using Weblate (Albanian)
Currently translated at 99.5% (2912 of 2924 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2021-04-26 16:04:19 +00:00
Germain Souquet 8f4c827089 change translate widget project ID 2021-04-26 16:59:24 +01:00
Germain Souquet 20ce3d10a3 add missing copyright header 2021-04-26 16:58:22 +01:00
Germain Souquet 4123406785 Move i18n utils to its own module 2021-04-26 16:55:12 +01:00
Šimon Brandner 9f1d17b1a2 i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner e820d60cd4 Show zoom buttons only if zooming is enabled
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner 9a04f029aa Fix spelling 2021-04-26 16:53:34 +01:00
Šimon Brandner 2f147c2e98 Change cursor to default
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner 3716ec4a25 Try to precalculate the zoom from width and height props
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner ebe3b36528 If the image is small don't scale
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner 59bf542158 Fall back to natural height and width
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner 95ea71a23a Use a ref instead of that ugly thing
Sometimes I do really weird things and don't know why :D

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner dcd625c7e3 Rework zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner bc62c6bec9 Fix zoom step and coeficient
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner d0ba142b72 Add some comments
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner 7e2a3e3c31 Use MAX_SCALE for maxZoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Germain Souquet 86c61cab33 Move i18n utils to its own module 2021-04-26 16:52:11 +01:00
Šimon Brandner 52e2c136d7 Use correct cursor when we can't zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner 3ae0bc307c Remove logline
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner 464ebe900d Get rid of onWindowResize()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner 6a405fa8e8 Don't use percanteages
I was an idiot to use them in the first place

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner 0d2db0e83a Add dynamic maxZoom and wire it all up
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner a1906be349 Initial code for dynamic minZoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Germain Souquet 72483a60cb Add diff-i18n script for CI 2021-04-26 16:22:33 +01:00
J. Ryan Stinnett 26bb7c08c2 Add join rule comment 2021-04-26 16:20:16 +01:00
Weblate 87dcefabf2 Merge branch 'origin/develop' into Weblate. 2021-04-26 15:19:14 +00:00
Besnik Bleta 3345ef25f0 Translated using Weblate (Albanian)
Currently translated at 99.6% (2909 of 2920 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2021-04-26 15:19:13 +00:00