Michael Telatynski
41a2325a2a
Migrate more strings to translation keys ( #11683 )
2023-10-02 13:52:27 +01:00
Michael Telatynski
aa6e3654b8
Create more common_*
common strings ( #11439 )
2023-08-23 10:25:33 +01:00
Michael Telatynski
c40141cc4f
Align common_*
strings with Element X project in Localazy ( #11434 )
2023-08-22 18:47:33 +01:00
Michael Telatynski
c3574c2050
Switch to importing client from main js-sdk export ( #11370 )
2023-08-09 07:18:41 +00:00
Michael Telatynski
f04a0e2860
Populate info.duration for audio & video file uploads ( #11225 )
...
* Improve m.file m.image m.audio m.video types
* Populate `info.duration` for audio & video file uploads
* Fix tests
* Iterate types
* Improve coverage
* Fix test
* Add small delay to stabilise cypress test
* Fix test idempotency
* Improve coverage
* Slow down
* iterate
2023-07-17 12:07:58 +00:00
Michael Telatynski
cfd48b36aa
Enable strictPropertyInitialization ( #11203 )
2023-07-07 14:46:12 +01:00
Michael Telatynski
4207d182cd
Enable strictFunctionTypes ( #11201 )
2023-07-07 13:37:26 +01:00
Michael Telatynski
280f6a9d93
Use MatrixClientPeg::safeGet in src/components/views/* ( #10987 )
2023-06-15 08:46:19 +01:00
Michael Telatynski
949557b5c6
Fall back from server generated thumbnail to original image ( #10853 )
...
* Add test for falling back from thumbnail to original
* Fall back from server generated thumbnail to original image
2023-05-11 09:20:14 +00:00
Michael Telatynski
82e32035fd
Conform more of the codebase to strictNullChecks
( #10842 )
2023-05-11 09:56:56 +01:00
Michael Telatynski
456c66db5b
Conform more of the codebase to strictNullChecks ( #10800 )
2023-05-10 08:41:55 +01:00
Kerry
542bf68c63
Fix: reveal images when image previews are disabled ( #10781 )
...
* fix image wrapping when showImage previews is disabled
* strict v2
2023-05-05 03:41:42 +00:00
Kerry
6280395928
Fix: Images no longer reserve their space in the timeline correctly ( #10571 )
...
* test case
* fix + lint
* refix strictNullChecks issue
* add comment about max image size
* tweak
* use safer magic number
2023-04-13 01:22:16 +00:00
Michael Telatynski
cefd94859c
Conform src/components/views/messages/*
code to strictNullChecks
( #10461 )
2023-03-29 08:22:35 +01:00
Michael Telatynski
503df62191
Conform more of the codebase to strictNullChecks
( #10358
...
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Iterate
* Iterate
2023-03-13 15:07:20 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type
in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Michael Telatynski
f1e8e7f140
Enable @typescript-eslint/explicit-member-accessibility
on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Telatynski
5f76528832
Improve MImageBody error handling ( #9663 )
...
* Improve MImageBody error handling
* Fix strict errors
* We can assert this as isAnimated would be false if no content.info.mimetype
2022-12-05 12:50:19 +00:00
Michael Telatynski
d258402186
Typescript updates ( #9658 )
...
* Typescript updates
* Update @types/node
* Fix more types
2022-11-30 11:32:56 +00:00
Michael Telatynski
962e8e0b23
Differentiate download and decryption errors when showing images ( #9562 )
2022-11-10 09:27:20 +00:00
Michael Telatynski
52fc8ff255
Fix html export not including images ( #9260 )
...
* Fix html export not including images
* Respect showPlaceholder
* Add tests
2022-09-08 10:00:58 +00:00
Kerry
7afc8c5869
Task - replace img icons with svg components ( #8963 )
...
* add role=presentation to backdrop panle image
* replace img icons with svg components in InviteDialog
* replace img icon with svg component
* img icons to svg icons in MImageBody
* remove log
* img icon to svg in SecurityRoomSettingsTab
* use shared error message for media message tiles
* remove nbsp
* dont snapshot test entire rtl render response
* use aria-describedby for uploadconfirm preview
* use aria-labelledby instead
2022-07-06 13:29:26 +02:00
Michael Telatynski
bb859d5886
Fix wrong assertions that all media events have a mimetype ( #8946 )
2022-06-30 14:35:40 +01:00
Michael Weimann
aac97e01e3
Reload map on reconnect ( #8848 )
...
PSD-282
2022-06-15 16:38:35 +02:00
Michael Telatynski
ce73b9988e
Hide image banner on stickers, they have a tooltip already ( #8641 )
2022-05-18 10:08:33 +01:00
Travis Ralston
f51a6b6da4
Show file name and size on images on hover ( #6511 )
...
* Show simple file name and size on images/videos
Fixes https://github.com/vector-im/element-web/issues/18197
* i18n
* Fix bad merge
* Add hover state tracking
* Only show on timeline-like objects
* Match new design requirements
* Remove video support (deemed not needed)
* Colouring and sizing from design
* Include file name in lightbox
* Revert changes to videos since we don't need them
* i18n
* Iterate PR
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-14 10:31:53 +02:00
Travis Ralston
548290b006
Run a minor code quality checker over the repo ( #8524 )
...
* Run a minor code quality checker over the repo
Largely targeted at spelling of common words and misc code issues.
* Update snapshots
2022-05-09 22:52:05 +00:00
Michael Telatynski
f85e178fc1
Fix centering issue with sticker placeholder ( #8404 )
2022-04-25 17:36:32 +00:00
Janne Mareike Koschinski
1436f23e2f
Fix image preview sizing for edge cases ( #8322 )
2022-04-14 20:07:34 +02:00
Travis Ralston
fe032ed942
Step 8.5: Move specific image utilities out of ContentMessages
2022-03-28 14:02:31 -06:00
Travis Ralston
997d6d40bf
Step 1: Remove all usage of @replaceableComponent
2022-03-28 14:02:31 -06:00
Robin
af6bd63ac7
Fix some image/video scroll jumps ( #8182 )
...
* Fix some image/video scroll jumps
* Fix aspect ratio formatting
* Fix videos not being responsive to timeline width
2022-03-28 19:07:02 +00:00
Michael Telatynski
bc01efa124
Improve handling of animated GIF and WEBP images ( #8153 )
2022-03-25 16:31:40 +00:00
Robin
953e3148d1
Make video sizing consistent with images ( #8102 )
...
* Make video sizing consistent with images
* Test suggestedSize
* Constrain width of media in large mode
2022-03-22 18:16:03 -04:00
Kerry
d98a73b003
Revert "replace all require(.svg) with esm import" ( #7969 )
...
* Revert "replace all require(svgs) with esm import (#7948 )"
This reverts commit 61cd463a3b
.
* add .default to svg icon inline requires
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add shameful eslint ignore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* format eslintrc
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add missed MFileBody change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* one more broken svg
Signed-off-by: Kerry Archibald <kerrya@element.io>
* and ignore it
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-03 17:51:38 +00:00
Kerry
61cd463a3b
replace all require(svgs) with esm import ( #7948 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-02 17:14:33 +01:00
Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
2022-02-22 12:18:08 +00:00
Michael Telatynski
5f5bb4a4fe
Consolidate TileShape into TimelineRenderingType ( #7843 )
2022-02-18 15:56:05 +00:00
Michael Telatynski
4b5ca1d7a9
Fix timeline jumping issues related to bubble layout ( #7529 )
2022-01-18 09:31:21 +00:00
Michael Telatynski
a968b4ce53
Improve typing around LoggedInView ( #7384 )
...
* Update SyncState imports
* Improve typing around LoggedInView
* Fix typing
2021-12-16 09:57:10 +00:00
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Timo
8860916225
Fix size of portrait images with the SIZE_NORMAL setting. ( #7188 )
2021-11-29 15:01:54 +01:00
Timo
a0e8c29d85
Make image size constrained by height when using the ImageSize.Large option ( #7171 )
2021-11-24 15:32:47 +01:00
Germain
e4d645e360
Hide MFileBody download link for threaded messages ( #7127 )
...
Co-authored-by: Travis Ralston <travisr@matrix.org>
2021-11-19 09:07:12 +00:00
Travis Ralston
3c06e7f7a0
Add option to change the size of images/videos in the timeline ( #7017 )
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: Timo K <toger5@hotmail.de>
2021-11-17 15:19:30 +00:00
Dariusz Niemczyk
5290afcc4c
Replace console.warn with logger.warn
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02:00
Jaiwanth
94e4fb71c1
Merge branch 'develop' into export-conversations
2021-09-22 18:07:01 +05:30
Šimon Brandner
1a128c3a00
Merge remote-tracking branch 'upstream/develop' into feature/image-view-load-anim/18186
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-11 15:32:44 +02:00