element-web/res/css/views/rooms
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
..
wysiwyg_composer
_AppsDrawer.pcss
_Autocomplete.pcss
_AuxPanel.pcss
_BasicMessageComposer.pcss Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
_DecryptionFailureBar.pcss
_E2EIcon.pcss
_EditMessageComposer.pcss
_EmojiButton.pcss
_EntityTile.pcss
_EventBubbleTile.pcss
_EventTile.pcss
_HistoryTile.pcss
_IRCLayout.pcss
_JumpToBottomButton.pcss
_LinkPreviewGroup.pcss
_LinkPreviewWidget.pcss
_LiveContentSummary.pcss
_MemberInfo.pcss
_MemberList.pcss
_MessageComposer.pcss
_MessageComposerFormatBar.pcss
_NewRoomIntro.pcss
_NotificationBadge.pcss
_PinnedEventTile.pcss
_PresenceLabel.pcss
_ReadReceiptGroup.pcss
_RecentlyViewedButton.pcss
_ReplyPreview.pcss
_ReplyTile.pcss
_RoomBreadcrumbs.pcss
_RoomCallBanner.pcss
_RoomHeader.pcss
_RoomInfoLine.pcss
_RoomList.pcss
_RoomListHeader.pcss
_RoomPreviewBar.pcss
_RoomPreviewCard.pcss
_RoomSublist.pcss
_RoomTile.pcss
_RoomUpgradeWarningBar.pcss
_SearchBar.pcss
_SendMessageComposer.pcss
_Stickers.pcss
_ThreadSummary.pcss
_TopUnreadMessagesBar.pcss
_VoiceRecordComposerTile.pcss
_WhoIsTypingTile.pcss