element-web/res/css/views
Clark Fischer a8aa4de4b4
Member avatars without canvas (#9990)
* 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
..
audio_messages Apply prettier formatting 2022-12-12 12:24:14 +01:00
auth Apply prettier formatting 2022-12-12 12:24:14 +01:00
avatars Apply prettier formatting 2022-12-12 12:24:14 +01:00
beta Separate labs and betas more clearly (#8969) 2022-11-30 21:20:26 +00:00
context_menus Only highlight focused menu item if focus is supposed to be visible (#9945) 2023-01-20 08:46:17 -05:00
dialogs Device manager - tweak settings display (#9905) 2023-01-15 21:31:07 +00:00
directory Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
elements #22204 Issue: Centered File info in lightbox (#9971) 2023-01-23 19:01:11 +00:00
emojipicker Apply prettier formatting 2022-12-12 12:24:14 +01:00
location Apply prettier formatting 2022-12-12 12:24:14 +01:00
messages Redesign the picture-in-picture window (#9800) 2023-01-04 04:44:38 +00:00
right_panel changing the color of message time stamp (#10016) 2023-01-29 10:03:38 +00:00
room_settings Disallow invalid inline style comments in stylesheets (#9099) 2022-07-27 14:39:29 +01:00
rooms Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
settings Apply prettier formatting 2022-12-12 12:24:14 +01:00
spaces Fix space lock icon size (#9854) 2023-01-05 09:19:54 +01:00
terms Apply prettier formatting 2022-12-12 12:24:14 +01:00
toasts Apply prettier formatting 2022-12-12 12:24:14 +01:00
typography Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
user-onboarding The Welcome Home Screen: Return Button (#9089) 2022-08-12 12:55:31 +02:00
verification Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
voip Prevent call durations from breaking onto multiple lines (#9944) 2023-01-20 08:45:55 -05:00