Commit graph

32519 commits

Author SHA1 Message Date
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
Š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
Š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
41f4293034
Merge pull request #5911 from SimonBrandner/normalize-wheel
[Release] Add a WheelEvent normalization function
2021-04-23 13:14:46 +01:00
J. Ryan Stinnett
3ef5655db3
Merge pull request #5907 from matrix-org/jryans/image-bg-opacity-release
[Release] Use floats for image background opacity
2021-04-22 16:00:00 +01:00
J. Ryan Stinnett
d15e846025 Use floats for image background opacity
It seems percentages for opacity are still newish, and they seem to confuse
something which is clamping them to the 0 - 1 range (which makes sense for
floats, not percentages).

Anyway, for now we can get what we want here by using float values.

Fixes https://github.com/vector-im/element-web/issues/17036
2021-04-22 15:05:31 +01:00
Šimon Brandner
2e6397d8aa
Wire up normalizeWheelEvent()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:35 +02:00
Šimon Brandner
ad53b0e2e2
Add normalizeWheelEvent()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:12 +02:00
RiotRobot
037b433519 v3.19.0-rc.1 2021-04-21 16:53:34 +01:00
RiotRobot
b6b321f90c Prepare changelog for v3.19.0-rc.1 2021-04-21 16:53:33 +01:00
RiotRobot
40ed8fd342 Upgrade matrix-js-sdk to 10.0.0-rc.1 2021-04-21 16:47:29 +01:00
J. Ryan Stinnett
5b8cd10ee5
Merge pull request #5896 from RiotTranslateBot/weblate-element-web-matrix-react-sdk
Translations update from Weblate
2021-04-21 16:29:09 +01:00
Weblate
bfa34cd394 Merge branch 'origin/develop' into Weblate. 2021-04-21 15:20:02 +00:00
Andrejs
8e0b514dc6 Translated using Weblate (Latvian)
Currently translated at 50.9% (1485 of 2916 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lv/
2021-04-21 11:34:25 +00:00
Germain
3d25500f78
Merge pull request #5895 from matrix-org/gsouquet-fix-sticky-tags
Fix sticky tags header in room list
2021-04-21 11:07:44 +01:00
Germain Souquet
c5a1bb2d2c fix sticky tags header in room list 2021-04-21 10:44:20 +01:00
Michael Telatynski
8373b0e69c
Merge pull request #5893 from matrix-org/t3chguy/fix/16978
Fix spaces filtering sometimes lagging behind or behaving oddly
2021-04-21 09:20:18 +01:00
Michael Telatynski
bae47bbd79
Merge pull request #5894 from matrix-org/t3chguy/fix/17026
Fix issue with spaces context switching looping and breaking
2021-04-21 09:11:26 +01:00
Germain
68fb9a78c4
Merge pull request #5874 from matrix-org/gsouquet-room-events 2021-04-21 09:09:01 +01:00
Michael Telatynski
ecd9b8d6de Fix issue with spaces context switching looping and breaking 2021-04-21 09:01:22 +01:00
Michael Telatynski
1507f64f2b Fix spaces filtering sometimes lagging behind or behaving oddly 2021-04-21 08:52:56 +01:00
Michael Telatynski
eba0fbf902
Merge pull request #5891 from SimonBrandner/fix/context-switching
Avoid being stuck in a space
2021-04-20 15:28:47 +01:00
Šimon Brandner
9b81f5b4a0
Add a comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 16:11:34 +02:00
Šimon Brandner
3adb2635ba
Revert "Remove unnecessary check"
This reverts commit 08c0f0a67e.

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 15:40:32 +02:00
Michael Telatynski
ace8d59a2a Fix Spaces NPE when a room with no tags gains its first tag 2021-04-20 13:12:28 +01:00
Michael Telatynski
b2e9f6731b
Merge pull request #5795 from SimonBrandner/spaces/context-switching
[Spaces] Context switching
2021-04-20 12:38:54 +01:00
Michael Telatynski
c4ef1f9828
Merge pull request #5415 from aaronraimist/only-member-warning
Warn when you attempt to leave room that you are the only member of
2021-04-20 12:33:19 +01:00
Šimon Brandner
4344ff9097
Update src/stores/SpaceStore.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-04-20 13:31:50 +02:00
Šimon Brandner
d4ca087c2e
Make getLastViewedRoomsStorageKey() make sense
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 13:24:23 +02:00
Šimon Brandner
1934c4a32f
Add getLastViewedRoomsStorageKey()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:39:11 +02:00
Šimon Brandner
f9292c364c
Check if we are joined
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:25:56 +02:00