Commit graph

32896 commits

Author SHA1 Message Date
Š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
Š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
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
waclaw66
6a517f2764 Translated using Weblate (Czech)
Currently translated at 100.0% (2920 of 2920 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2021-04-26 15:19:09 +00:00
random
f16a7240a4 Translated using Weblate (Italian)
Currently translated at 100.0% (2920 of 2920 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2021-04-26 15:19:07 +00:00
jelv
8afcf82934 Translated using Weblate (Dutch)
Currently translated at 100.0% (2920 of 2920 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nl/
2021-04-26 15:19:03 +00:00
libexus
bb4c454d38 Translated using Weblate (German)
Currently translated at 99.2% (2898 of 2920 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2021-04-26 15:18:59 +00:00
J. Ryan Stinnett
d1649dd301 Tweak interface syntax 2021-04-26 16:16:43 +01:00
J. Ryan Stinnett
d497d62db3 Use enums in SecurityRoomSettingsTab 2021-04-26 16:14:21 +01:00
Michael Telatynski
43b43dc685 tidy up code 2021-04-26 16:11:07 +01:00
Michael Telatynski
a8711dcce9 useSpaceSummary return error for incompatible server notice 2021-04-26 16:06:42 +01:00
J. Ryan Stinnett
cddcedcce2 Merge remote-tracking branch 'origin/develop' into jryans/convert-flow-to-ts 2021-04-26 15:57:28 +01:00
J. Ryan Stinnett
8659c98c44 Add tile shape string type 2021-04-26 15:55:04 +01:00
Michael Telatynski
489b4be6cf Fix space hierarchy css not applying as it should 2021-04-26 15:48:33 +01:00
J. Ryan Stinnett
9401a6d6dc
Merge pull request #5916 from SimonBrandner/image-view-zoom
Dynamic max and min zoom in the new ImageView
2021-04-26 15:46:26 +01:00
J. Ryan Stinnett
ba4e58513d Fix ScalarAuthClient test 2021-04-26 15:41:19 +01:00
J. Ryan Stinnett
25e4feeb38 Add more types in WidgetEchoStore 2021-04-26 15:38:43 +01:00
J. Ryan Stinnett
82caac16c8 Add types for StorageManager functions 2021-04-26 15:30:34 +01:00
J. Ryan Stinnett
4b66082b0f Add change event type 2021-04-26 15:27:30 +01:00
J. Ryan Stinnett
809454e66a Use new managed prop for emoji composer menu 2021-04-26 15:23:55 +01:00
J. Ryan Stinnett
bf43144f6e Add ActionPayload type 2021-04-26 15:21:49 +01:00
Travis Ralston
ddb8947c15
Merge pull request #5897 from matrix-org/travis/error-states
Improve message error states
2021-04-26 08:16:26 -06:00
J. Ryan Stinnett
01cfd9361e Fix ManageEventIndexDialog props syntax 2021-04-26 15:06:10 +01:00
J. Ryan Stinnett
eb9bf9c83f Tweak Terms constructor 2021-04-26 15:03:17 +01:00
J. Ryan Stinnett
889289d464 Tweak Timer constructor 2021-04-26 15:01:05 +01:00
J. Ryan Stinnett
8537f0a5a1 Remove unneeded lint tweak 2021-04-26 14:59:26 +01:00
J. Ryan Stinnett
1b615eebc1 Fix optional props 2021-04-26 14:56:43 +01:00
Michael Telatynski
751568cef2 Disable spaces context switching for when exploring a space 2021-04-26 14:55:11 +01:00
J. Ryan Stinnett
83596c7335 Use private parameter properties 2021-04-26 14:54:36 +01:00
Šimon Brandner
38566a3644
i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 15:51:56 +02:00
Šimon Brandner
1fcad1a634
Show zoom buttons only if zooming is enabled
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 15:47:58 +02:00
J. Ryan Stinnett
a3a756fdb2 Rename history visibility type 2021-04-26 14:08:45 +01:00
J. Ryan Stinnett
69fbfdc552 Fix interface syntax 2021-04-26 14:07:45 +01:00
J. Ryan Stinnett
3b39007a5d Move initialisers to field 2021-04-26 14:06:25 +01:00
J. Ryan Stinnett
b8a915bb76 Tweak private / underscores for fields and methods 2021-04-26 14:02:53 +01:00