Commit graph

8 commits

Author SHA1 Message Date
Michael Telatynski
2cee8a4b01
Specify lazy loading for avatars ()
* Specify lazy loading for avatars

so browser doesn't fetch eagerly if off-screen

* Update snapshots
2023-05-11 18:29:48 +00:00
Michael Telatynski
61a63e47f4
Comply with noImplicitAny ()
* Stash noImplicitAny work

* Stash

* Fix imports

* Iterate

* Fix tests

* Delint

* Fix tests
2023-02-13 11:39:16 +00:00
Michael Telatynski
21c3967010
Revert "Member avatars without canvas" (
* Revert "Apply more general fix for base avatar regressions ()"

This reverts commit 371a3c0d36.

* Revert "Fix layout and visual regressions around default avatars ()"

This reverts commit 0d1fce37b2.

* Revert "Member avatars without canvas ()"

This reverts commit a8aa4de4b4.

* Update snapshots
2023-02-02 10:22:19 +00:00
Michael Telatynski
0d1fce37b2
Fix layout and visual regressions around default avatars () 2023-01-31 13:56:48 +00:00
Clark Fischer
a8aa4de4b4
Member avatars without canvas ()
* Strict typechecking fixes for Base/Member/Avatar

Update the core avatar files to pass `--strict --noImplicitAny` typechecks.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Add tests for Base/Member/Avatar

More thoroughly test the core avatar files. Not necessarily the most thorough,
but an improvement.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Extract TextAvatar from BaseAvatar

Extracted the fallback/textual avatar into its own component.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Use standard HTML for non-image avatars

Firefox users with `resistFingerprinting` enabled were seeing random noise
for rooms and users without avatars. There's no real reason to use data
URLs to present flat colors.

This converts non-image avatars to inline blocks with background colors.

See https://github.com/vector-im/element-web/issues/23936

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Have pills use solid backgrounds rather than colored images

Similar to room and member avatars, pills now use colored pseudo-elements
rather than background images.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

---------

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-01-30 09:50:08 +00:00
Michael Weimann
ab9152044c
Use the same avatar colour when creating 1:1 DM rooms () 2023-01-05 17:05:21 +01:00
Michael Weimann
526645c791
Apply prettier formatting 2022-12-12 12:24:14 +01:00
Germain
e8d4fbb8ff
Fix missing avatar for show current profiles () 2022-11-11 16:02:01 +00:00