Michael Telatynski
|
2e19c7fd24
|
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/17021
Conflicts:
src/components/views/spaces/SpaceCreateMenu.tsx
|
2021-05-11 13:40:28 +01:00 |
|
Robin Townsend
|
e46bc93178
|
Fall back to MXID when no display name is present
MemberAvatar requires a display name, or else it refuses to render.
Signed-off-by: Robin Townsend <robin@robin.town>
|
2021-05-08 21:22:31 -04:00 |
|
Robin Townsend
|
44b143c8c3
|
Match requested avatar size to displayed size
Reduces the blurriness of avatars in the EventTilePreview.
Signed-off-by: Robin Townsend <robin@robin.town>
|
2021-05-08 21:17:05 -04:00 |
|
Tulir Asokan
|
cc919452b5
|
Merge remote-tracking branch 'upstream/develop' into compact-reply-rendering
|
2021-05-07 00:07:51 +03:00 |
|
Šimon Brandner
|
7ad270928a
|
Simplifie code a bit
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-05-06 16:41:09 +02:00 |
|
Šimon Brandner
|
bb9803a94e
|
Don't try to use the event's metadata to calc the scale
That has lead to https://github.com/vector-im/element-web/issues/17184
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-05-06 16:40:33 +02:00 |
|
Michael Telatynski
|
90538c95aa
|
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/17021
|
2021-05-06 08:05:14 +01:00 |
|
Jaiwanth
|
3eea1b8369
|
Add cleanup functions for image view
|
2021-05-04 16:42:22 +05:30 |
|
Tulir Asokan
|
09f9916916
|
Merge remote-tracking branch 'upstream/develop' into compact-reply-rendering
|
2021-05-01 15:37:32 +03:00 |
|
Šimon Brandner
|
232b87a3b4
|
Improve formatting
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-29 19:57:02 +02:00 |
|
Michael Telatynski
|
46d35411b4
|
Add animated mx_BetaDot atop the legacy Communities button
|
2021-04-27 17:01:22 +01:00 |
|
Šimon Brandner
|
46bfbbadf9
|
Enable indent rule and fix indent
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-27 17:23:27 +02:00 |
|
Robin Townsend
|
3a62f6cdaa
|
Merge branch 'develop' into better-spinners
|
2021-04-26 14:12:44 -04:00 |
|
Robin Townsend
|
d3db5fe77f
|
Vectorize mini avatar uploader spinner
Signed-off-by: Robin Townsend <robin@robin.town>
|
2021-04-26 14:10:09 -04: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 |
|
Š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 |
|
Šimon Brandner
|
53e8b5e6af
|
Merge branch 'image-view-zoom' of https://github.com/SimonBrandner/matrix-react-sdk into image-view-zoom
|
2021-04-26 15:01:47 +02:00 |
|
Šimon Brandner
|
3547d1f93b
|
Change cursor to default
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-26 15:01:06 +02:00 |
|
Šimon Brandner
|
e374fcfe91
|
Fix spelling
|
2021-04-26 13:49:29 +02:00 |
|
Šimon Brandner
|
dbca370497
|
Try to precalculate the zoom from width and height props
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-26 13:48:14 +02:00 |
|
Šimon Brandner
|
b741b3112a
|
If the image is small don't scale
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-26 13:47:06 +02:00 |
|
Šimon Brandner
|
33107a1f47
|
Fall back to natural height and width
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-26 13:30:14 +02:00 |
|
Šimon Brandner
|
c1a4204ad3
|
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 13:11:41 +02:00 |
|
Šimon Brandner
|
0e312977e3
|
Rework zooming
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 10:36:53 +02:00 |
|
Šimon Brandner
|
90f2423eb7
|
Fix zoom step and coeficient
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 10:35:25 +02:00 |
|
Šimon Brandner
|
bcc6e5c5d5
|
Add some comments
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 09:41:46 +02:00 |
|
Šimon Brandner
|
9b7a9fc865
|
Use MAX_SCALE for maxZoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 09:24:25 +02:00 |
|
Šimon Brandner
|
dcc060f6f7
|
Use correct cursor when we can't zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 09:00:15 +02:00 |
|
Šimon Brandner
|
e0e9ccbf95
|
Remove logline
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 08:38:13 +02:00 |
|
Šimon Brandner
|
57b34f8dbc
|
Get rid of onWindowResize()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 08:37:51 +02:00 |
|
Šimon Brandner
|
f8af9831a9
|
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-24 08:35:45 +02:00 |
|
Šimon Brandner
|
4523b8c7b8
|
Add dynamic maxZoom and wire it all up
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 08:32:28 +02:00 |
|
Šimon Brandner
|
dad7a22055
|
Initial code for dynamic minZoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-24 08:03:39 +02:00 |
|
J. Ryan Stinnett
|
2344ddd164
|
Merge remote-tracking branch 'origin/develop' into jryans/convert-flow-to-ts
|
2021-04-23 17:19:52 +01:00 |
|
J. Ryan Stinnett
|
d7e6f4b4b5
|
Add basic types
|
2021-04-23 17:05:50 +01:00 |
|
J. Ryan Stinnett
|
c09d4f4a78
|
Merge pull request #5904 from SimonBrandner/normalize-wheel
Add a WheelEvent normalization function
|
2021-04-23 12:59:37 +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 |
|
Michael Telatynski
|
23c61752cd
|
Add comment
|
2021-04-22 09:08:25 +01:00 |
|
Michael Telatynski
|
60828913d2
|
Iterate the spaces face pile design
|
2021-04-22 08:13:03 +01:00 |
|
Germain Souquet
|
33eebb84a6
|
Ensure PersistedElement are unmounted on application logout
|
2021-04-19 17:57:20 +01:00 |
|
J. Ryan Stinnett
|
2d1615e433
|
Merge pull request #5872 from SimonBrandner/new-image-view-fixes
New Image View fixes/improvements
|
2021-04-19 17:37:42 +01:00 |
|
Tulir Asokan
|
b8ef67e447
|
Merge remote-tracking branch 'upstream/develop' into compact-reply-rendering
|
2021-04-19 13:37:27 +03:00 |
|
Šimon Brandner
|
2e31355741
|
Don't do anything if we didn't press the left button
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-15 08:10:03 +02:00 |
|
Šimon Brandner
|
72d8e6ccca
|
Decrease ZOOM_COEFFICIENT
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-15 08:09:14 +02:00 |
|
Travis Ralston
|
1aeb9a5fb2
|
Appease the linter
|
2021-04-14 22:04:18 -06:00 |
|
Travis Ralston
|
22219e0e80
|
Adapt <Tooltip> to use an Alignment enum instead
|
2021-04-14 21:13:09 -06:00 |
|
Travis Ralston
|
ac00c80efb
|
Merge pull request #5521 from SimonBrandner/improve-image-view
Improve image view
|
2021-04-13 19:01:27 -06:00 |
|
Šimon Brandner
|
f9fde3670d
|
Set target to _blank
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-13 08:15:42 +02:00 |
|
Šimon Brandner
|
b1091a22a3
|
Don't render context menu button if mxEvent is missing
The button is useless and doesn't work if we're viewing an avatar
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
|
2021-04-13 08:11:09 +02:00 |
|
J. Ryan Stinnett
|
8a1180bd50
|
Rename toggle to view
|
2021-04-12 13:19:13 +01:00 |
|